• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Coerce file reference to text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Coerce file reference to text (From: Sam <email@hidden>)
 >Re: Coerce file reference to text (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: How to get text of frontmost window in Mail?
  • Next by Date: Re: Coerce file reference to text
  • Previous by thread: Re: Coerce file reference to text
  • Next by thread: Re: Coerce file reference to text
  • Index(es):
    • Date
    • Thread