Skip to content

Instantly share code, notes, and snippets.

@smithjw
Last active December 21, 2015 13:49
Show Gist options
  • Save smithjw/6315247 to your computer and use it in GitHub Desktop.
Save smithjw/6315247 to your computer and use it in GitHub Desktop.
tell application "System Events" to set FrontAppName to name of first process where frontmost is true
if FrontAppName is "Logic Pro X" then
tell application "System Events"
keystroke "k" using {control down}
end tell
else
tell application "Logic Pro X" to activate
tell application "System Events"
keystroke "k" using {control down}
delay 0.5
tell application "System Events"
keystroke tab using {command down}
end tell
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment