Re: Do shell script
Re: Do shell script
- Subject: Re: Do shell script
- From: Emmanuel <email@hidden>
- Date: Wed, 25 Feb 2004 18:09:35 +0100
At 4:27 PM +0100 25/02/04, Gianfranco wrote:
>
Maybe this is a stupid question but if I use the Do shell script command with spaces in the string the command didn't work
Always pass to shell scripts the "quoted form" of your strings.
>
do shell script "open /Users/TripleZ/Desktop/ProgCSS/CSSEdit.app"
should be:
---------------- untested
set f to "/Users/TripleZ/Desktop/Prog CSS/CSSEdit.app"
do shell script ("open " & quoted form of f)
----------------
AppleScript's dictionary defines "quoted form" as a property of the "text" class. :-)
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.