PDA

View Full Version : How can I end this script once the command has been run?




techmonkey
Dec 8, 2008, 02:41 PM
I created a script to open a specific Firefox profile, but the script stays open until I close Firefox. How can I end the script once Firefox opens?

do shell script "/Applications/firefox.app/Contents/MacOS/firefox -P Accounts-Firefox"



Cromulent
Dec 8, 2008, 02:47 PM
Either use activity monitor or use the kill command from the terminal (assuming it is run as a separate process).

techmonkey
Dec 8, 2008, 03:15 PM
Either use activity monitor or use the kill command from the terminal (assuming it is run as a separate process).

LOL, thats not much of a solution!

Found this on another thread,

added this "&> /dev/null &"

to the end. Works like I want it to.

Cromulent
Dec 8, 2008, 05:13 PM
LOL, thats not much of a solution!

Fair enough.