Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: path to as string



On Tue, 28 Jun 2005 12:06:52 -0700, Christopher Nebel <email@hidden>
said:
>you  
>shouldn't be saying "path to ... as string" in the first place.  (Use
>"as Unicode text" instead

How quickly we forget. What did I start out by saying? Here, I'll say it
again:

> The following works:
> 
> path to desktop as unicode text
> 
> When I say it works, I mean that the osax command "path to" is itself
> accepting the coercion request and performing it. However, this is not
> documented in the dictionary; the dictionary explicitly claims that alias
> and string are the only valid choices. I suggest that this is a
> teensy-weensy bug in the dictionary. m.

That's the remark that started this whole thread! So, you see, we've come
full circle. The thing that's in the dictionary doesn't work and the thing
that works isn't in the dictionary. That's my point.

Instead of blaming me, the poor old end-user trying to make sense of this,
maybe someone could (gasp) fix the dictionary so it tells the truth and
gives the user some good advice. Or, hey, here's an even wilder idea: if I
say path..as string and it doesn't need any encoding info (i.e. it's all
ASCII), return a string - but if it does need encoding info, return
(double-gasp) Unicode text! Wow, the mind boggles. 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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.