Force desktop html shortcut to launch in Firefox?

Discussion in 'macOS' started by mgmusicman94, Aug 26, 2013.

  1. mgmusicman94 macrumors 6502a

    Nov 16, 2008
    Hey guys. I have a website I need to use for my psychology class and the the only official supported browser on mac is firefox. I hate firefox but to avoid having the site record my grades incorrectly I have to use it. Anyways, is there a way I can make a shortcut to the site on my desktop that will open in Firefox? But just that one shortcut. I tried setting the open with application to firefox but it still opened in safari.
  2. chabig macrumors 601

    Sep 6, 2002
    I can think of two very simple options (although there are many ways to do this):

    1. Put Firefox in your dock and drag the shortcut on top of the Firefox dock icon each time you open it.

    2. Open Firefox and drag the shortcut onto the Firefox window.
  3. subsonix macrumors 68040

    Feb 2, 2008
    You can try saving this in a file:

    open -a Firefox
    Then make it executable:

    chmod +x name_of_file
    This will also launch a Terminal window, but you can avoid that by creating an Automator application and use the first bit above in a run shell script action if you want to avoid that.
  4. subsonix macrumors 68040

    Feb 2, 2008
    Come to think of it the last option is clearly better. Here's what you need to do:

    1. Open Automator (It's in the Applications folder)
    2. Select Application
    3. Type 'run' in the search box
    4. Drag the 'run shell script' action to the workspace
    5. Paste the single line with 'open' in it to the action
    6. Save the application to your desktop
    7. Quit Automator

    Attached Files:

    • pic.png
      File size:
      119.8 KB
  5. mgmusicman94 thread starter macrumors 6502a

    Nov 16, 2008
  6. Robisan macrumors 6502

    Jan 19, 2014
    Jeez, nobody suggested the easiest, simple solution -- Set the website as the Home page in Firefox and put FF in the dock. Every time you open FF it will open to that Home page. Done.

Share This Page