Skip to content

Instantly share code, notes, and snippets.

@furball514
Last active July 15, 2017 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furball514/d87720b025fcfa287a8ba8ff76f28463 to your computer and use it in GitHub Desktop.
Save furball514/d87720b025fcfa287a8ba8ff76f28463 to your computer and use it in GitHub Desktop.
applescript to zoom and open chrome in incognito
tell application "System Events"
repeat 13 times
key code 24 using {command down, option down}
end repeat
end tell
delay 1
if application "Google Chrome" is running then
tell application "Google Chrome" to make new window with properties {mode:"incognito"}
else
do shell script "open -a /Applications/Google\\ Chrome.app --args --incognito"
end if
tell application "Google Chrome" to activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment