PDA

View Full Version : AppleScript Launch Application




sebf
Feb 20, 2008, 04:46 PM
Basically I am trying to launch Firefox in a specific profile (eg having 2 AppleScripts for each profile)

ignoring application responses
do shell script "/Applications/Firefox.app/Contents/MacOS/firefox -P Firefox3Beta -no-remote 2>&1 >/dev/null &"
end ignoring

This launches Firefox in the right profile, but the AppleScript hangs/crashes in the background, until you quit Firefox.

Is there any way of launching an application (with arguments) and not having the AppleScript hanging?

I tried the same thing with a shell script, but terminal just remains open/hanging until you quit Firefox.



lancestraz
Feb 21, 2008, 09:13 AM
I think someone figured out how to do this in this thread (http://forums.macrumors.com/showthread.php?t=423718).

sebf
Feb 21, 2008, 02:07 PM
I think someone figured out how to do this in this thread (http://forums.macrumors.com/showthread.php?t=423718).

Cheers for the tip, that one has been driving me crazy for the past few days!