Don’t you hate it when you click on a link in an app and macOS switches to the space with the last used Google Chrome window? Worse, the link is opened as a new tab in that Chrome window. Fortunately, there’s a solution to open links in a new Chrome window in the current space:
- Create an Apple Script
OpenURLInNewChromeWindow.appwith the following content:
on open location theURL
do shell script "/usr/bin/open '/Applications/Google Chrome.app' --new --args --new-window \"" & theURL & "\""
end open location
- Install SwiftDefaultApps and set
OpenURLInNewChromeWindow.appas the default web browser.
Since I had to set this up on my work machine recently I thought it’s good to share this ProTip! I’d love to give credit to the original source but I couldn’t find it anymore.