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