Created
May 22, 2017 12:40
-
-
Save jduprey/2f29e413be70b2bc5f78db3aa581ca82 to your computer and use it in GitHub Desktop.
An Applescript that will open links clicked outside of the browser into a NEW Google Chrome WINDOW, instead of a TAB. [Mac OS X]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Based on numerous posts, but mainly this one: http://smoove-operator.blogspot.com/2011/06/open-links-from-external-applications.html?showComment=1456344705609#c2945803548300096133 | |
-- See alos: https://apple.stackexchange.com/questions/9500/how-to-make-chrome-open-a-new-window-for-external-links | |
on handle_url(args) | |
tell application "/Applications/Google Chrome.app" | |
make new window | |
activate | |
set URL of active tab of first window to |URL| of args | |
end tell | |
return 1 | |
end handle_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment