Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

As some people might know, the default behavior for external links of Google Chrome is quite bad. I'm using Spaces, and opening a link in some application outside of Google Chrome while being on a different Space than the last used window of Chrome results in Chrome switching to the last focused window.

This behavior is just bad.

I want to change this behavior. On Windows, this is possible: How can you configure Chrome to open new browser instances in new windows rather than in a tab?

Sadly, I don't think this is possible on OS X Snow Leopard.

I'm already using a tool called RCDefaultApps. This is a system-control panel where I can specify default applications for different protocols. It just lacks the feature to specify additional command line arguments for the default application.

Can anyone help me there? Every hacks (aside from creating a custom Chromium build) are acceptable.

share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

You can try using the AppleScript found on this page.

I just tried it out and it perfectly works fine in Chrome 12.0.742.122.

It's extremely easy to set up:

  • download the Bundle archive
  • double click it to unpack it
  • double click on OpenUrlInNewChromeWindow
  • open Safari and set the new "Browser" as the default browser in the Preferences.

new default browser

share|improve this answer
    
This seems to introduce a (very short) delay before opening the window, but it's exactly what I was searching for. Thanks! –  the-kenny Aug 2 '11 at 16:19
    
This applescript works wonderfully. –  Nelson Sep 7 '11 at 16:06
    
looks great, but the links to the script are now broken. Is it available elsewhere? –  Mike Eng Jan 7 at 19:06
add comment

I've been unable to make it work too.

What I was trying to do was to use the following command:

open Google\ Chrome.app/ --new --args new-window www.google.com

But that opens a new Chrome that instantly closes (if Chrome is already open). I was planning on wrapping the above command within a bash script and then let it have arguments (for the URL).

But since the above command failed to work, I'm still thinking about this. So far I believe it's not "possible" without some modification to Chromium, but I might be overlooking something. It's early and I haven't had coffee yet. ;)

share|improve this answer
    
Yup, I tried that too. (with "google.com"; instead of "Google Chrome.app") Both version don't work. –  the-kenny Mar 3 '11 at 16:38
add comment

The --new-window command option did it for me. ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --new-window https://www.google.com)

share|improve this answer
    
This is for Windows — please edit to refer to OS X. –  grgarside Jan 13 at 19:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.