Google Chrome Incognito – Mac OSX Perfect Solution
Posted on : 12-17-2009 | By : Cool Geex | In : Google, Script Editor
8
- Update: “Open” For leopard doesn’t have –args as option so pay attention for the differences between the two.
Aug-12-2009 I published a script that start Google Chrome in incognito mode by default.
Since than G’s of readers used my method, and now I’m releasing the perfect Mac Solution for that problem.
Inspired by Craig H from The Web Site Is Down
1st Option:
Download the DMG I Created Here: Google Chrome (Incognito) For Snow Leopard
OR This one (Google Chrome Incognito) For Leopard
2nd Option:
1. Open Apple Script Editor and paste the following code.
Snow Leopard: do shell script "open -a Google\ Chrome --new --args -incognito"
Leopard: do shell script "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome –incognito"
2. Save & Run
Related posts:
- Create an Application that Start Google Chrome in Incognito Mode
- Start Google Chrome in Incognito Mode
- Snow Leopard Installation Issues
- Create your own list of email addresses from your inbox








100 thank yous for the Leopard addition!!
Did you save google.com as your home page?
This is the way that the script knows what window to close.
You can also remove the following code from the script:
tell menu bar item “Window”
tell menu “Window”
click menu item “Google”
end tell
end tell
tell menu bar item “File”
tell menu “File”
click menu item “Close Window”
end tell
end tell
*But remember it will not close the first window.
Also, I tried all that methods on Snow Leopard, If you are running Leopard it might be different.
I’ll try to find the right way for Leopard and update the post.
Max OS X: v 10.5.8
Chrome: 4.0.249.43 (up to date)
I also visited your previous link and tried using that Mac method. The script was entered and compiled, and while pressing Run did open a new Incognito window, the script wouldn’t work, and I got the error:
System Events got an error: Can’t get menu item “Google” of menu “Window” of menu bar item “Window” of menu bar 1 of process “Google Chrome”.
What version of OSX & Google Chrome are you using?
I got lots of Positive feedbacks for that post.
Nope. Neither the script nor the program work, regardless of rewriting it.
Sorry–I really should have specified:
That’s the error I received after downloading your app. The very same error occurs when I try to manually write the scripts. ‘args’ appearing with one ‘-’ is just the chat, on my screen it appeared with two.
Hi DV,
Do not Copy Paste the code, Just reWrite it.
When you copy HTML and Paste it to terminal it using different character set.
You can also download the Application, this is the easiest way. (Don’t worry – it is Safe)
If you don’t want to download the App, just make sure that you write the code and that there’s 2 minus characters before new and args.
Terminal:
open -a Google\ Chrome --new --args -incognitoScript Editor:
do shell script "open -a Google\\ Chrome --new --args -incognito"Good Luck
Help?
open: unrecognized option `–args’
Usage: open [-e] [-t] [-f] [-W] [-n] [-g] [-h] [-b ] [-a ] [filenames]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.
Options:
-a Opens with the specified application.
-b Opens with the specified application bundle identifier.
-e Opens with TextEdit.
-t Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.
-W, –wait-apps Blocks until the used applications are closed (even if they were already running).
-n, –new Open a new instance of the application even if one is already running.
-g, –background Does not bring the application to the foreground.
-h, –header Searches header file locations for headers matching the given filenames, and opens them.