Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Desktop Shortcut in non-Default browser?

Good Evening,


I have Google Chrome set as my default browser in Lion. To access certain DOD websites I have to use Safari since it can access my PKI smartcard and chrome can't. I'd like to create a few desktop shortcuts for these websites to open in Safari, not chrome. I can drag the URL to the desktop and it creates the shortcut. I right clicked on the icon and changed the "open with" to Safari but when I then double click the icon it still opens in the default browser, Chrome.


Any mac geniuses out there who know of a script or something to force those specific desktop shortcuts to open in Safari(not default browser) vs Chrome (default browser)?


Thank you!

Mac Pro, Mac OS X (10.7)

Posted on Jul 28, 2011 10:05 PM

Reply
Question marked as Best reply

Posted on Jan 3, 2017 3:28 PM

In macOS 10.12 Sierra, I solved this with a simple AppleScript, and posted the solution in detail at http://apple.stackexchange.com/a/267324/71739. In summary, create an AppleScript application with this code:

tell application "Safari" to open location "https://apple.stackexchange.com/"

But keep a copy of the Script file, because you can't reopen Applications in the Script Editor.

12 replies
Question marked as Best reply

Jan 3, 2017 3:28 PM in response to dfromc

In macOS 10.12 Sierra, I solved this with a simple AppleScript, and posted the solution in detail at http://apple.stackexchange.com/a/267324/71739. In summary, create an AppleScript application with this code:

tell application "Safari" to open location "https://apple.stackexchange.com/"

But keep a copy of the Script file, because you can't reopen Applications in the Script Editor.

Jun 27, 2013 6:29 AM in response to andyBall_uk

This isn't working for me for a URL I want to force open in Firefox (Chrome is my default). Right-click "open with" works. But, even after changing the "open with" in "get info" to Firefox, it opens in Chrome.


Changing ".webloc" to ".webbookmark" broke it entirely. It does open in FF, but as an XML file that outputs this:


<plist version="1.0"><dict><key>URL</key><string>[URL]</string></dict></plist>


Any ideas? Thanks.

Desktop Shortcut in non-Default browser?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.