Re: POSIX path
Re: POSIX path
- Subject: Re: POSIX path
- From: Jon Pugh <email@hidden>
- Date: Wed, 9 Jan 2002 20:59:46 -0800
At 3:14 AM +0100 1/10/02, Sven-S. Porst wrote:
>
do shell script "cat /Users/ssp/Desktop/Bla\\314\\210"
>
>
but this also fails with the error message
>
>
--> cat: /Users/ssp/Desktop/Bla314210: No such file or directory
You'll note that all your \ characters are gone. I'll bet you got double "double slashed." That means the "do shell script" command probably removed your double slashes and passed the proper thing to the "cat" command which then tried to escape all the slash characters again, meaning you might need to quadruple slash to get a single slash into the command.
But I think you mostly knew that.
Try this:
do shell script "cat /Users/ssp/Desktop/Bla\\\\314\\\\210"
>
(a) Is there a way to convert the path to a representation that I can
>
actually pass to command line tools?
Yes, rename it. That's the unix way. A common choice is "a", although "x" is also popular.
Good luck.
Jon
References: | |
| >POSIX path (From: "Sven-S. Porst" <email@hidden>) |