Tuesday, September 29, 2020

#51 2019-12-19 06:13:01 am

Yvan Koenig
Member
Registered: 2006-09-14
Posts: 4569

Re: AppleScript stopped working after update to 10.13

Thank you.

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) jeudi 19 décembre 2019  13:12:56

Offline

 

#52 2019-12-19 06:14:09 am

ChangeAgent
Member
From:: Scotland
Registered: 2008-03-07
Posts: 345

Re: AppleScript stopped working after update to 10.13

well really it is me who has (and wants) to say THANK YOU! Thanks you!

Offline

 

#53 2019-12-19 07:11:20 am

Yvan Koenig
Member
Registered: 2006-09-14
Posts: 4569

Re: AppleScript stopped working after update to 10.13

On your late screenshot I see that the app may display many more slots.
What is the higher number?
I see that clicking button 3 once reveal slots 13 thru 25.
What would reveal clicking it twice ?  slots 26 thru 38 or slots 25 thru 37 ?
Knowing that it seems that it would be easy to enhance the script, so that it may treat every value wink

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) jeudi 19 décembre 2019  14:10:34

Offline

 

#54 2019-12-19 08:20:57 am

ChangeAgent
Member
From:: Scotland
Registered: 2008-03-07
Posts: 345

Re: AppleScript stopped working after update to 10.13

well as far as I am concerned we are there.  however if you feel like an other challenge, are you sitting, it has 64 slots.

Offline

 

#55 2019-12-19 02:07:52 pm

Yvan Koenig
Member
Registered: 2006-09-14
Posts: 4569

Re: AppleScript stopped working after update to 10.13

After numerous test with the Numbers version I made several changes.
The main one replace

Applescript:

set {wLeft, wTop} to its position #
set {x, y} to {wLeft + 33, wTop + 46}

by

Applescript:

set {wLeft, wTop} to position of scroll area 1
set {x, y} to {wLeft + 33, wTop + 9}

which, at least with Numbers is more precise.

With that and the new values given to lim2, lim3, lim4 & lim5 the version dedicated to Numbers selects the correct slot in every case.

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) jeudi 19 décembre 2019  21:07:44

Offline

 

#56 2019-12-20 12:22:33 am

ChangeAgent
Member
From:: Scotland
Registered: 2008-03-07
Posts: 345

Re: AppleScript stopped working after update to 10.13

Nope, I get:

Applescript:

tell application "VeraCrypt"
   activate
end tell
tell application "System Events"
   set frontmost of application process "VeraCrypt" to true
   exists window "VeraCrypt" of application process "VeraCrypt"
       --> true
   exists window "VeraCrypt" of application process "VeraCrypt"
       --> true
   get position of scroll area 1 of window "VeraCrypt" of application process "VeraCrypt"
       --> error number -1719 from scroll area 1 of window "VeraCrypt" of application process "VeraCrypt"
Result:
error "System Events got an error: Can’t get scroll area 1 of window \"VeraCrypt\" of application process \"VeraCrypt\". Invalid index." number -1719 from scroll area 1 of window "VeraCrypt" of application process "VeraCrypt"

Offline

 

#57 2019-12-20 02:18:36 am

Yvan Koenig
Member
Registered: 2006-09-14
Posts: 4569

Re: AppleScript stopped working after update to 10.13

Oops, I'm really an ass.

There is a scroll area in Numbers, not in VeraCrypt.
I will make the scheme able to treat both cases.
The edited code will be available soon.

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) vendredi 20 décembre 2019  09:18:30

The edited version dated 2019/12/20 09:35 is available

Last edited by Yvan Koenig (2019-12-20 02:37:43 am)

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)