Force URL to open with Chrome

I use Safari for my browsing, but I have a situation where Safari is not rendering a site correctly and subsequently, I need to open the site with Chrome.


I've created a shortcut to the site on my desktop and can CTRL+CLICK the shortcut (name.webloc) and select "Open With" followed by Chrome. That works great.


I tried to change the default for "Open With" for the shortcut to use Chrome so that I can double-click the shortcut from the desktop but when I select "Get Info" the Open With dropdown is greyed out with Safari being the default.


How can I change the default to Chrome for that one shortcut?


Thanks a bunch.


--- Val

MacBook Pro with Retina display, macOS Sierra (10.12.3), null

Posted on Feb 15, 2017 12:53 PM

Reply
11 replies

Feb 16, 2017 2:03 PM in response to vpalhories

If you have dragged a URL onto the Desktop from Safari as a *.webloc, then you cannot change the default open with application from Safari to another browser. Not by changing ownership, or read/write permission, or removing file attributes (e.g. <!-- com.apple.quarantined, or com.apple.FinderInfo -->).


Someone at Apple decided that this was not going to happen.

Feb 16, 2017 2:20 PM in response to vpalhories

Do you need the .webloc file?


I think this is why 'Services' exist, this service opens a URL from anywhere in Chrome (second post)…

http://apple.stackexchange.com/questions/32907/safari-extension-for-right-click- menu-open-in-google-chrome

Works for me on 10.9, I don't have 10.12 available to test so let us know if it works.


You could also save it as an Application instead & 'hard code' the URL if you really want Chrome to open to one fixed address via a desktop or dock icon etc.

Feb 16, 2017 3:01 PM in response to vpalhories

When you create the workflow you are prompted to create a 'type', select Application and it will be a self contained thing that runs the enclosed actions when opened.


A service is something that is shown in the Services menu, either via a right click, the Apple menu> Services or the Application menu > Services. They only appear in court he right context, so select a URL to use the one I suggested.


For the Application you will need to edit the AppleScript line that sets the URL. I'll test & post better instructions later.

Feb 16, 2017 3:29 PM in response to vpalhories

I'm not certain you need to use system events.

You can modify the stack exchange version as follows…


on run {input, parameters}

set theURL to "http://apple.com"

tell application "Google Chrome"

if not (exists first window) then


makenewwindow

set URL of last tab of first window to theURL

else

tell first window

set newTab to makenewtabwith properties {URL:theURL}

end tell

end if


activate

end tell

end run



That should make a new window if one doesn't exist & add the URL to a new tab. System events are fine, but best saved for when there is no alternative.


Anyway, have fun with it. It can be useful to get to know some of the tweaks that are in the OS. 🙂

Nov 18, 2017 3:09 AM in response to vpalhories

I started having this problem after installing the High Sierra yesterday. My desktop shortcuts which I have also "ornamented" with little photo icons and have been previously created ( dragged) from Chrome now say Safari default and Change options are greyed out. They work only with Safari, Chrome returns a blank page. Nothing I can do apart from using Safari or deleting them and doing them again from scratch in Chrome.

Is there no way of removing the grey to get to Change ??

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Force URL to open with Chrome

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