Skip to content

Instantly share code, notes, and snippets.

@segphault
Created March 17, 2011 22:56
Show Gist options
  • Save segphault/875313 to your computer and use it in GitHub Desktop.
Save segphault/875313 to your computer and use it in GitHub Desktop.
tell application "Dock"
activate
end tell
tell application "System Events"
tell process "Dock"
set frontmost to true
activate
tell list 1
perform action "AXShowMenu" of UI element "Google Chrome"
repeat 5 times
key code 126
end repeat
delay 1
repeat 2 times
key code 36
end repeat
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment