Skip to content

Instantly share code, notes, and snippets.

@bewebste
Created August 31, 2012 20:32
Show Gist options
  • Select an option

  • Save bewebste/3558576 to your computer and use it in GitHub Desktop.

Select an option

Save bewebste/3558576 to your computer and use it in GitHub Desktop.
Applescript to toggle Tweetbot window
tell application "System Events"
if exists application process "Tweetbot" then
tell application process "Tweetbot"
if frontmost then
set visible to false
else
set frontmost to true
end if
end tell
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment