Featured Posts

Play Tetris Using Mac Leopard TerminalPlay Tetris Using Mac Leopard Terminal Terminal Tetris is actually part of the Gnu Emacs and is something you should able to do on any unix system that has Emacs on it.I attached text and video instructions.To...

Readmore

Automate a Remote Login Using SSH - LinuxAutomate a Remote Login Using SSH - LinuxTo do just that you need to create SSH Key Pair1. we need to use ssh-agent to create an SSH key pair.To do that run this command: ssh-keygen -t rsaWhen prompted...

Readmore

Free Google Wave InvitesFree Google Wave InvitesDo you really want a Google Wave Invite but don't want to pay $$$ on eBay???I got one for you....The deal is:I give you an Invitation and once you get it...

Readmore

Google DNS Test Results After using Google DNS for few days, And after running NameBench twice I found that:Google DNS is faster then Most if not All other DNS Servers.Check out the results:Bottom...

Readmore

Start Google Chrome in Incognito ModeStart Google Chrome in Incognito Mode I'm Using Mozilla FireFox as my default web browser But I like using Chrome for Private Browsing.Google Chrome doesn't provide an option to load Incognito by default so...

Readmore

Cool Geex Rss

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:

  1. Create an Application that Start Google Chrome in Incognito Mode
  2. Start Google Chrome in Incognito Mode
  3. Snow Leopard Installation Issues
  4. Create your own list of email addresses from your inbox

How To Link To This Page?

To link to this page, simply Copy and Paste the following code to your web page.

Comments (8)

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 -incognito
Script 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.

Write a comment