Open in Firefox

I currently use Safari as my primary browser on OS X systems. Oftentimes I find that I either want to dissect a web page in Firebug or even just see what it looks like in Firefox. This is kind of a pain because it takes several steps:

  1. Open Firefox (one step with Quicksilver)
  2. Activate Safari
  3. Copy URL from desired website
  4. Activate Firefox
  5. Paste URL into Firefox.

I could probably consolidate these steps a little bit (by dragging and dropping the URL perhaps), but the point remains, this is an annoying process to go through every time I want to quickly check something out in Firefox.

Last week I put together a nifty little script in Automator to streamline this process. Basically, the script copies the URL from the active tab in Safari, opens Firefox and loads the page. I saved the script as an application and with Quicksilver it’s now just one step to activate the script.

For the most part, the script was pretty easy to set up. There is a built-in action to Get Current Webpage from Safari. There aren’t any scriptable actions for Firefox from Automator, but opening it is simple enough using a terminal command:

open -a Firefox.app

The only slightly tricky part about the script was getting the copied URL to automatically load when Firefox opens. After a little research I found that this could be simply passed as a parameter to the open command:

open -a Firefox.app $@

Perhaps some other Safari-lovers will find this useful. Enjoy.

You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments

1. An Even Better "Open in Firefox" | NerdStarGamer

[…] I blogged about the nifty little Open in Firefox script that I made. As it turns out, there is an even better way to this, using some fancy […]



appointive
appointive
appointive
appointive