Script Terminal Command for Firefox

Aug 20, 2006 11:50

I am trying to write an applescript to run this terminal command:

/Applications/DeerPark.app/Contents/MacOS/firefox -p "default"

What I have so far is

do shell script "/Applications/DeerPark.app/Contents/MacOS/firefox -p "default""

but it gives me the error:

A Identifier can't go after this """.So is there a different way I need to write the " ( Read more... )

Leave a comment

Comments 3

xv August 20 2006, 18:58:40 UTC
the compiler doesn't like your double quotes. try

do shell script "/Applications/DeerPark.app/Contents/MacOS/firefox -p " & quoted form of "default"

or

do shell script "/Applications/DeerPark.app/Contents/MacOS/firefox -p \"default\""

Reply

unsated August 20 2006, 19:21:44 UTC
Neither of those worked. The first one just ignored the "default" part and the second one gave me the error:

run-mozilla.sh: Cannot execute /Applications/DeerPark.app/Contents/MacOS/firefox-bin.pure.

Reply

xv August 20 2006, 20:12:58 UTC
You are past the compiler error and now looking at a shell script error. I can't help you with that except to say you might try running the script in terminal instead:

tell app "terminal" to do script "/Applications/DeerPark.app/Contents/MacOS/firefox -p \"default\"" in window 1

If that reveals nothing take a look at TN2065.

Reply


Leave a comment

Up