Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I'm still running Big Sur on my iMac and Firefox is my default browser. I just tried dragging the link to this Macrumors page to the desktop. When I double click it, it opens with Firefox even though the details for the file show Safari as the default and it's greyed out as well.
 
If you are a Keyboard Maestro user there is a macro that I requested which was used to save a webloc file on the desktop at the activation of a button. The dev who created it for me has kindly updated it so it saves a HTML file on the desktop instead. Works well for me. You can find the thread and macro here.
Unfortunately this macro does not do anything on my computer. I am using Keyboard Maestro 10.2 and the macro is enabled.
 
To use it have a web page open in your browser then hit your trigger keystroke, it should then create the HTML shortcut on the desktop
 
... have a web page open in your browser then hit your trigger keystroke, ...
Nothing happens when I do just that, and nothing happens when I click "Try" in the Keyboard Maestro Editor while this macro is selected. Other Keyboard Maestro shortcuts/macros work.
 
Last edited:
I'm still running Big Sur on my iMac and Firefox is my default browser. I just tried dragging the link to this Macrumors page to the desktop. When I double click it, it opens with Firefox even though the details for the file show Safari as the default and it's greyed out as well.
Yes, this seems to be a problem exclusive to 13.1. I have found that .webloc files act a bit unique in mac os. Their default app cannot be changed in get info. They always show the default as safari. However, the default browser you set in the system will be what is used when you double click them.

However now in 13.1 they only open in Safari no matter what your default is. That is the bug and I hope it is fixed in 13.2!
 
  • Like
Reactions: xgman
Wrote a half-assed Applescript to bookmark the active Firefox tab to my desktop as one of those .HTML files.


Code:
try
    tell application "Firefox"
        set urlName to the name of the front window
    end tell
on error
    display dialog "Error 1"
    return
end try


try
    tell application "System Events" to get value of UI element 1 of combo box 1 of toolbar "Navigation" of first group of front window of application process "Firefox"
    
    set theurl to the result
on error
    display dialog "Error 2"
    return
end try

set code1 to "<!DOCTYPE html><html><body onLoad=\"go();\"><script>"
set code2 to "function go() { location.assign(\"" & theurl & "\"); }"
set code3 to "</script></body></html>"

set theCode to code1 & code2 & code3


set the urlFile to ((path to desktop) as text) & urlName & ".html"
try
    open for access file the urlFile with write permission
    write (theCode & return) to file the urlFile starting at eof
    close access file the urlFile
on error
    try
        close access file the urlFile
    end try
    return
end try
 
Nothing happens when I do just that, and nothing happens when I click "Try" in the Keyboard Maestro Editor while this macro is selected. Other Keyboard Maestro shortcuts/macros work.
That is so weird it works perfectly for me. It is sat in a group which is enabled and not the default location is it? I had to move it from where it was imported to my 'live macros' group before it ran.
 
Maybe try rebuilding the launch services database? Onyx will do that easily.

Edit: Nevermind. I've confirmed this problem on my MBP running Ventura and Firefox. Rebuilding the launch services database using Onyx didn't fix it.
 
Last edited:
  • Like
Reactions: tozzo
Everyone of the replies here are wasting so many thinks and talks with something that is solved easily by a simple app/preference pane that was invented with sharks and their parents, or some where in that time frame.
Behold Friends
Github Link, have been using this exact app for the last 2 or 3 Mac versions and its still working well on 13.1 :)
 
  • Like
Reactions: dbrewood and tozzo
Many thanks to blueberru. Further instructions: Install the System Settings preference pane from the Github link above by double-clicking the downloaded .prefpane file. Then go to Uniform Type Identifiers and select com.apple.web-internet-location, click on "Other..." in the Viewer selection panel and add your Firefox.app. You should then be able to double-click a webloc link on the desktop and it will open with Firefox. To confirm, if you "get info" on a desktop webloc link it should now indicate that Firefox is the default app. Works for me, YMMV.
 
  • Like
Reactions: dbrewood and tozzo
This does indeed work perfectly! Alas it's not recommended doing it when suffering from a migraine. The first time around I inadvertently chose to change 'com.apple.internet-location' instead of 'com.apple.web-internet-location' as you can see below.


Screenshot 2022-12-17 at 11.12.44.jpg


Can some kind soul please advise what 'com.apple.internet-location' should be set to and how to change it back to that value.

Thanks in advance.
 
  • Like
Reactions: tozzo
It's not just Firefox, it's all other browsers when dragging a web link to the desktop, they set as Safari only, and you can not change the "open with" from "Safari" in the Get info screen. Even with password it is greyed out. This is of course with Firefox set to the default browser. I also tried setting Chrome to default browser with the same results. It's just broken. I wonder if the new beta will fix it?
 
  • Like
Reactions: tozzo
still broken (i just tried with chrome). everyone should report it to apple. and today's (17 december) security update did not fix it either...
Yeah same here after testing it. I knda suspect Apple did this on purpose to get you to use Safari. There was some other4 forced Safari news a couple months ago like this. Not happy...
 
Last edited:
Yeah same here after testing it. I knda suspect Apple did this on purpose to get you to use Safari. There was some other4 forced Safari news a couple months ago like this. Not happy...
am sure it's a bug. apple lets you choose your default browser, so a link should open that browser.

even tho i never do this (save links to the desktop, or whevever), i reported it in feedback assistant. meanwhile, the right-click option i keep mentioning 🙄 does work...
 
  • Like
Reactions: tozzo and xgman
am sure it's a bug. apple lets you choose your default browser, so a link should open that browser.

even tho i never do this (save links to the desktop, or whevever), i reported it in feedback assistant. meanwhile, the right-click option i keep mentioning 🙄 does work...
Yeah that's the problem. System Preferences shows changed default to Firefox or whatever, but when you right click a web link, it says open with "Safari" (default)", so the prefs there aren't registering. Reminds me of the last shortcuts on the desktop opening terminal bug from a couple betas ago.
(feedback assistant message sent)
 
Last edited:
Everyone of the replies here are wasting so many thinks and talks with something that is solved easily by a simple app/preference pane that was invented with sharks and their parents, or some where in that time frame.
Behold Friends
Github Link, have been using this exact app for the last 2 or 3 Mac versions and its still working well on 13.1 :)
Thank you this does indeed work. Not sure I appreciate calling our thread a waste, but whatever.
 
  • Like
Reactions: dbrewood
This does indeed work perfectly! Alas it's not recommended doing it when suffering from a migraine. The first time around I inadvertently chose to change 'com.apple.internet-location' instead of 'com.apple.web-internet-location' as you can see below.


View attachment 2129581

Can some kind soul please advise what 'com.apple.internet-location' should be set to and how to change it back to that value.

Thanks in advance.
All available viewer, editor etc options are blank on my system.
 
Did the same thing by mistake as above internet location instead of internet web location, but I wonder if the firefox check there will hurt anything? You can't uncheck it. Now I have Firefox checked twice there. ughh..Apple please fix this!
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.