Advertisement
Guest User

keyboard apple script 1

a guest
Apr 14th, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- List of key codes:
  2. -- http://macbiblioblog.blogspot.com/2014/12/key-codes-for-function-and-special-keys.html
  3. on run
  4.     tell application "MyApplication"
  5.         activate
  6.     end tell
  7.     tell application "System Events"
  8.         -- cmd+arrow down
  9.         key code 125 using {command down}
  10.         -- Just in case
  11.         delay 0.2
  12.         -- cmd+control+, (System Preferences > Keyboard > Shortcuts  > Keyboard > Move focus to next window)
  13.         key code 50 using {command down}
  14.         -- Just in case
  15.         delay 0.2
  16.         -- cmd+arrow down
  17.         key code 125 using {command down}
  18.     end tell
  19. end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement