Re: bug in rest of list?
Re: bug in rest of list?
- Subject: Re: bug in rest of list?
- From: John W Baxter <email@hidden>
- Date: Tue, 5 Feb 2002 12:31:48 -0800
At 22:54 -0500 2/4/2002, email@hidden wrote:
>
try
>
display dialog y as integer -- deliberately err
>
on error errmsg
>
display dialog errmsg -- y looks like a string!
>
end try
>
>
Any explanations forthcoming?
Because (at least in part) of an underlying Apple Event Manager coercion
either direction between one anything and a list of that thing, single item
lists in many contexts look a lot like the item they contain. Note that to
the AEManager, that's a trivial coercion (slap some boilerplate into the
memory block, or strip it off), and change the type code, in a descriptor.
This seems to be one of those contexts:
set a to {"one item"}
display dialog a
display dialog class of a
first displays one item
then displays list
Above in Mac OS X 10.1.2 (without the beta Applescript, which I haven't had
time to install).
--John
--
John Baxter email@hidden Port Ludlow, WA, USA