r/applescript • u/Bawrai • Feb 16 '21
AppleScript Problem since updating Mac
I wrote various scripts sometimes they work sometimes I get (error "Application isn’t running." number -600 from application "System Events") but before updated everything worked fine. Anyone else facing similar situation or anyone got a solution? I am using MacOS Big Sur V 11.2.1 and AppleScript V 2.11 (225)
Heres the Script
-------
tell application "System Events"
delay 5
set repeatTime1 to random number from 1 to 2
repeat repeatTime1 times
delay 0.4
key code 123
delay 0.7
key code 123
end repeat
end tell
--------
3
Upvotes
View all comments
Show parent comment
1
u/SvilenOvcharov Feb 16 '21
Well, try this:
When you open the Dictionaries list, there is a 'Browse' button below on the left. Use it to navigate to:
/Macintosh HD/System/Library/CoreServices/SystemEvents.appThen add that app to the dictionaries and you'll see all of its definitions.
About your script: Basically, 100% of your script uses System Event's commands and objects. So, you should check the syntax of all.