Re: display dialog bug
Re: display dialog bug
- Subject: Re: display dialog bug
- From: Shane Stanley <email@hidden>
- Date: Sun, 19 Jun 2005 14:24:06 +1000
- Thread-topic: display dialog bug
On 19/6/05 8:50 AM, "Paul Berkowitz" <email@hidden> wrote:
> There's a quirk with 'display dialog' in Tiger
>
I think you're blaming the wrong thing.
> And it's all to do with a change in the Standard Additions dictionary.
>
I don't think so...
> So: 'buttons' is a list of _string_, but button returned is _Unicode text_.
> Hands up all those who noticed that.
>
Well, I'll put my hand up for noticing that what it returned, regardless of
what the dictionary says, is Unicode text -- but it's been that way for some
time now, certainly before Tiger.
> Of course, in Tiger where concatenations of string and Unicode becomes Unicode
> no matter which is listed first, the two values which really were still string
> now become Unicode too.
>
And that's your real problem, IMO; it's just that the old method was hiding
the change to Unicode, whatever version it happened in, by silently coercing
it to a string.
Which is not to say that the dictionary isn't misleading -- it is, and has
been for a long time. The whole transition to Unicode is made a lot harder
because too many dictionary entries are either inconsistent or at odds with
the reality. My Rule No. 1 of AppleScript: Dictionaries lie.
--
Shane Stanley <email@hidden>
_______________________________________________
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