Last active
July 15, 2017 12:48
-
-
Save furball514/d87720b025fcfa287a8ba8ff76f28463 to your computer and use it in GitHub Desktop.
applescript to zoom and open chrome in incognito
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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