Using Applescript to Execute a Complicated Keystroke

When using arrow keys you need to target them via key code.

tell application "Sublime Text 2" to activate

tell application "System Events" 
    key code 123 using {control down, option down, command down}
end tell

ARROW KEY CODES

  • LEFT: (key code 123)
  • RIGHT: key code 124)
  • UP: (key code 126)
  • DOWN: (key code 125)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)