Spaces in path names
I am trying to create an applescript that will open the Firefox profile manager so that I can just run the script rather than opening terminal and entering the command each time. Basically Firefox doesn't let you manage profiles like Mozilla throught the tools menu, you have to quit the program and enter the appropriate command into terminal (assuming Firefox.app is in the Applications folder):
/Applications/firefox.app/Contents/MacOS/firefox -profilemanager
In my case i have it in a different folder with the path:
/Applications/Internet\ Applications/Web\ Browsers/Firefox/firefox.app/Contents/MacOS/firefox -profilemanager
I don't know much about scripting, but i know scripts can run UNIX commands using the "do shell script" command. The problem is I don't know how to tell Applescript how to interpret the spaces in the pathname literally, i keep getting an unknown token error. Can someone help me? Here is the script as I have it so far:
do shell script "/Applications/Internet\ Applications/Web\ Browsers/Firefox/firefox.app/Contents/MacOS/firefox -profilemanager "
17" iMac Core Duo, DC 1.83GHz, 512MB RAM, Mac OS X (10.4.6);, iMac G3 500Mhz Snow, 384MB RAM, Mac OS X (10.4.6)