http://hints.macworld.com/article.php?story=20091013114424722
Created
January 16, 2012 10:13
-
-
Save mfilej/1620117 to your computer and use it in GitHub Desktop.
Make Safari open links from other applications in current space
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
on open location theURL | |
tell application "System Events" | |
if (count of windows of process "Safari") = 0 then tell application "Safari" to make new document | |
end tell | |
tell application "Safari" to open location theURL | |
end open location |
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
<key>CFBundleIdentifier</key> | |
<string>com.apple.AppleScript.SafariURLHelper</string> | |
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleURLName</key> | |
<string>SafariURLHelper</string> | |
<key>CFBundleURLSchemes</key> | |
<array> | |
<string>http</string> | |
<string>https</string> | |
</array> | |
</dict> | |
</array> | |
<key>NSUIElement</key> | |
<true/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @mfilej - Thanks for getting back to me.
No problem. I'll keep poking around, and let you know if I find a better solution. Thanks!