Re: Coerce file reference to text
Re: Coerce file reference to text
- Subject: Re: Coerce file reference to text
- From: Christopher Nebel <email@hidden>
- Date: Wed, 10 May 2006 17:28:06 -0700
On May 10, 2006, at 12:20 PM, Doug McNutt wrote:
At 13:57 -0400 5/10/06, Sam wrote:
POSIX path of foo
--> "/Applications/AppleScript/Script Editor.app/"
I guess so, I was expecting more of a Unix escaped string, but
this is pretty close to what I need, thanx, sam
If you need UNIX escapes there is "quoted form of" the POSIX path.
And yes that space in "Script Editor" needs an escape if the entire
path is not quoted.
Note that quoted form of is an AppleScript thing though. It does
things like using two sequential backslashes to account for
AppleScript's own escape mechanism on the way to the UNIX world.
Actually, it doesn't -- that's a display artifact. While you see two
backslashes in the result pane, the string really only has one. If
you "log" the string, you'll see the true contents.
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden