Open application via. command line with parameters - Multiple times
I need the command to open a specified URL in FireFox... easy enough, right?
Solution #1 was to use the "open -a" command, with the URL- so "open -a FireFox.app/ http://someURL.com" ... the problem with this is that it opens a new window or tab every time- its a minor annoyance, but when you do 100 or more compiles during the day, its quite annoying.
Solution #2 is to actually launch the program executable (FireFox.app/Content/MacOS/firefox) using the argument -url and that makes it so FireFox opens the URL in the current & front-most window. This worked great the first time, second time I get an error saying "A copy of Firefox is already open. Only one copy of Firefox can be open at a time."
Anybody know how to make it so I don't have to close a window every time I compile? Your help would be greatly appreciated.
Thanks!
-Eric
Unibody Macbook, Mac OS X (10.5.7), Cinema LED Display