MacOS – Force URL link to open with a specific browser

defaultslinksmacbook promacosweb-browser

I've created a URL link in my dock, however, the link only opens with the default browser. I have safari, Firefox, and chrome (latest being the default) installed in my machine. I'm wondering if someone knows how to default the link to open with Firefox instead of Chrome but still keeping chrome as the default browser.
Note: I'm running Mavericks in my MacBook Pro.

Best Answer

You could use the all powerful open command to achive this using a shell script / apple script. Not necessarily the nicest way, but that's the way I do it.

open http://apple.stackexchange.com -a Firefox.app 

would be the basic command to open this page in Firefox. You can easily wrap this in a nice to use apple script - let me know if you need to know how!