• 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
path to as string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

path to as string


  • Subject: path to as string
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 25 Jun 2005 13:27:58 -0700

Consider:

path to desktop as string
(path to desktop) as string

The results look the same, usually, but they are not. If you examine the
AEDesc that's coming back as a result, the first is a string, the second is
styled text. (There is no point asking for the "class of result"; you are
told "string" in both cases.) I recognize that the two are different
operations (the first has the osax do the coercion, the second has AS do the
coercion), but the use of styled text is odd. I am told that this is a way
of dealing with the possibility of having to handle an encoding. But since
we are advised that styled text can't handle every situation, I wonder
whether this is wise behavior. I have to admit I find this situation
confusing. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
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

  • Follow-Ups:
    • Re: path to as string
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: path to as unicode text
  • Next by Date: Re: path to as string
  • Previous by thread: path to as unicode text
  • Next by thread: Re: path to as string
  • Index(es):
    • Date
    • Thread