# Mental Masturbation, Musings, and Methods

## Running Multiple versions of Firefox

#### May 18th, 2008 · 2 Comments

So, in my recent frustration of both Facebook Chat suddenly not working on Firefox 3 RC1 and also many of my developer add-ons for Firefox not working in the new Firefox, I decided to try to run both Firefox 2 and 3 simultaneously.  This can of course be done with the two separate profiles and the command -no-remote as outlined in http://blog.codefront.net/2007/08/20/how-to-have-firefox-3-and-firefox-2-running-at-the-same-time   After this I wanted to turn this into an AppleScript to run from Quicksilver.  Using the command do shell script allows for the Terminal command to be run.  However, running the basic command as outline in the link above causes ScriptEditor or Quicksilver (whichever is running the script) to hang.  To fix this, we need to run the application in the background.  The normal way of doing this in Unix is to add an ampersand to the end of the command.  However, this is not enough for AppleScipt.  Finally, after looking at this page I saw that the proper full script would be:

?View Code APPLESCRIPT
 1  do shell script ("/Applications/Firefox.app/Contents/MacOS/firefox -P \"Default User\" -no-remote &> /dev/null &")

Of course you can make two scripts for the two different applications and two different profiles as outline in the above link. However, make sure to add the “&> /dev/null &” to the end so as to write the PID to a null file /dev/null and then to keep the process running in the background. I hope this helps, and, as always, let me know if you have any tips. Thanks.

Tags: AppleScript · Programming

### 2 responses so far ↓

• 1 firefox chat add ons // Jun 10, 2008 at 7:49 pm

[…] […]

• 2 Eric // Aug 5, 2008 at 7:47 am

Thanks for the tip. Rocking two versions of firefox now.