• 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 or feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: bug or feature?


  • Subject: RE: bug or feature?
  • From: Joe Kelly <email@hidden>
  • Date: Mon, 24 Dec 2001 11:35:49 -0800

AS 1.6, OS 9.2.1 gives me a similar problem -- it won't throw a user
canceled, instead preferring to return either a list of choices, or a
boolean false.

Workaround: you have to test the class of what's returned before attempting
to operate on it:

set theChoice to choose from list...
if (class of theChoice is list) then
-- do something with the list
else -- the class is boolean, meaning
-- the user canceled.
end if



> -----Original Message-----
> From: Deivy Petrescu [mailto:email@hidden]
> Sent: Monday, December 24, 2001 11:23 AM
> To: email@hidden
> Subject: bug or feature?
>
>
> I've noticed, in OS X, that choose from list returns "false",the AS
> constant not the string, if you press "Cancel".
> The dictionary says that choose from list should return a list of
> plain text, and "Cancel" should throw an error number -128.
> I am wrong not to trap a "Cancel" button with a if false statement ?
> Thanks and Merry Christmas and Happy New Year!
> Deivy Petrescu
> http://www.dicas.com
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.


  • Prev by Date: bug or feature?
  • Next by Date: Re: bug or feature?
  • Previous by thread: Re: bug or feature?
  • Next by thread: RE: bug or feature?
  • Index(es):
    • Date
    • Thread