path to as string
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