Skip to content

Instantly share code, notes, and snippets.

@zdne
Last active January 31, 2023 19:38
Show Gist options
  • Save zdne/7443950 to your computer and use it in GitHub Desktop.
Save zdne/7443950 to your computer and use it in GitHub Desktop.
Google Chrome Incognito – AppleScript to always run chrome in incognito mode. Save as an application to your Application folder. Optionally drag a and drop Google Chrome Icon in between Get Info panes (⌘+I)
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