Re: Scripting Additions: Embracing the Horror of Unix
Re: Scripting Additions: Embracing the Horror of Unix
- Subject: Re: Scripting Additions: Embracing the Horror of Unix
- From: Shane Stanley <email@hidden>
- Date: Fri, 01 Feb 2002 10:45:03 +1100
On 1/2/02 9:55 AM +1000, Oliver Sun, email@hidden, wrote:
>
Am I understanding you correctly that you are trying to pass a string
>
from AppleScript to a shell script, which may possibly have spaces or
>
other special characters?
>
>
Example: "My HD:Users:Me:Documents:My Funny Stuff:WTF$CK" in the
>
traditional Mac form needs to become the POSIX path
>
/Users/Me/Documents/My Funny Stuff/WTF$CK, except you must deal with the
>
spaces and the $ ?
>
>
If so, you will want to use single quotes, which are even stronger than
>
the double quote.
So is this what the new "quoted form" property of a string provides
automatically? So we can get the POSX path, then get the quoted form of
that, and use the result safely without further ado?
--
Shane Stanley, email@hidden