Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- List of key codes:
- -- http://macbiblioblog.blogspot.com/2014/12/key-codes-for-function-and-special-keys.html
- on run
- tell application "MyApplication"
- activate
- end tell
- tell application "System Events"
- -- cmd+arrow down
- key code 125 using {command down}
- -- Just in case
- delay 0.2
- -- cmd+control+, (System Preferences > Keyboard > Shortcuts > Keyboard > Move focus to next window)
- key code 50 using {command down}
- -- Just in case
- delay 0.2
- -- cmd+arrow down
- key code 125 using {command down}
- end tell
- end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement