Re: getting colon delimited path from POSIX path
Re: getting colon delimited path from POSIX path
- Subject: Re: getting colon delimited path from POSIX path
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 31 Oct 2002 09:17:02 -0800
On 10/31/02 2:13 AM, "John Delacour" <email@hidden> wrote:
>
>> will give you an AppleScript file. In fact, if you use an actual hardcoded
>
>> path, rather than a variable, it compiles with colons as you compile it.
>
>
>
> But - if there are spaces in the path - you can't use 'quoted form' of the
>
> POSIX path with single quotes, you need to \" escape-quote the path.
>
>
>
I don't see quite what you're getting at. Why _would_ anyone go to
>
the unnecessary trouble of using 'quoted path' in this case?
I happened to have the 'quoted form' for an 'input' file using a variable -
it made quoting much easier when incorporating variables into a 'do shell
script'. I manipulated the input file path to create a temporary file path
for output, using the same quoted form. The shell script executed
successfully, but then i was left with a file in POSIX form which wouldn't
convert back. it proved to be much easier to go back to the beginning,
adding all the escape quotes surrounding the variables for input and output
file. Then the output file resulting could be easily converted back by
'POSIX file'.
--
Paul Berkowitz
_______________________________________________
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.