Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ruthenium/ac61eb952e1b1a5d7aa5 to your computer and use it in GitHub Desktop.
Save ruthenium/ac61eb952e1b1a5d7aa5 to your computer and use it in GitHub Desktop.
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