Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mgmusicman94

macrumors 6502a
Original poster
Nov 16, 2008
871
240
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.
 
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.
 
You can try saving this in a file:

Code:
#!/bin/bash

open -a Firefox http://www.google.com

Then make it executable:

Code:
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.
 
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
 

Attachments

  • pic.png
    pic.png
    119.8 KB · Views: 311
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.