Skip to content

Instantly share code, notes, and snippets.

@bwhli
Created October 12, 2015 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhli/83c87dd6f33116e714de to your computer and use it in GitHub Desktop.
Save bwhli/83c87dd6f33116e714de to your computer and use it in GitHub Desktop.
delay 0.5 -- time to release modifier keys if for example the script is run with command-R
tell application "System Events"
set frontmost of process "Live" to true
keystroke "q" using command down
delay 0.5
tell application "System Events" to keystroke (ASCII character 28) --left arrow
delay 0.5
tell application "System Events" to keystroke (ASCII character 28) --left arrow
delay 0.5
keystroke return
end tell
delay 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment