Skip to content

Instantly share code, notes, and snippets.

@robotsandcake
Created June 14, 2019 21:23
Show Gist options
  • Save robotsandcake/5bc75958d39c8378d9338e70f9603701 to your computer and use it in GitHub Desktop.
Save robotsandcake/5bc75958d39c8378d9338e70f9603701 to your computer and use it in GitHub Desktop.
Example of using AppleScript to invoke key combinations. This hides the application other than the from most one when.
tell application "System Events"
-- This key combination hides every application other than the frontmost
keystroke "h" using {command down, option down}
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment