• 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
Re: bug in rest of list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >bug in rest of list? (From: email@hidden)

  • Prev by Date: Re: More problems with File extensions & Displayed names
  • Next by Date: Re: comparing two identical strings
  • Previous by thread: Re: bug in rest of list?
  • Next by thread: Re: bug in rest of list?
  • Index(es):
    • Date
    • Thread