Skip to content

Instantly share code, notes, and snippets.

@jgallen23
Created January 7, 2013 23:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgallen23/4479492 to your computer and use it in GitHub Desktop.
Save jgallen23/4479492 to your computer and use it in GitHub Desktop.
Script to toggle between Google Chrome and iTerm
tell application "System Events"
set frontApp to name of first application process whose frontmost is true
if frontApp is "Google Chrome" then
tell application "iTerm"
activate
end tell
else
tell application "Google Chrome"
activate
end tell
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment