RE: bug or feature?
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.