AppleScript Launch Application

Discussion in 'Mac Programming' started by sebf, Feb 20, 2008.

  1. macrumors member

    Joined:
    Oct 25, 2006
    Location:
    UK
    #1
    Basically I am trying to launch Firefox in a specific profile (eg having 2 AppleScripts for each profile)

    Code:
    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.
     
  2. macrumors 6502a

    lancestraz

    Joined:
    Nov 27, 2005
    Location:
    RI
  3. thread starter macrumors member

    Joined:
    Oct 25, 2006
    Location:
    UK
    #3
    Cheers for the tip, that one has been driving me crazy for the past few days!
     

Share This Page