Choose from list change in AS 1.5.5
Choose from list change in AS 1.5.5
- Subject: Choose from list change in AS 1.5.5
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 15 Feb 2001 00:24:02 -0800
I have just discovered (the hard way) that there is another behaviour change
in 'choose from list' in AS 1.5.5. The parameter 'default items' does not
error and terminate the script if you give it the wrong sort of data (items
that aren't in the list and/or are not strings); it just doesn't pre-select
any item but otherwise works fine. This may also occur with other optional
parameters in Standard Additions.
This is probably a good thing, but should be documented. I was puzzling over
user reports of a script's failure ("Some data was of the wrong type.") when
it worked fine for me in OS 9.1 under exactly the same conditions. It turned
out I had entered a faulty default item in choose from list, and the users
had OS 9.0.4 which failed where 9.1 didn't. I hadn't noticed that the last
list item wasn't pre-selected as intended.
Unfortunately the mysterious conditions which truncate the prompt are still
present in the new interface for 'choose from list'. It seems to have
something to do with the length of list items: if they are all short, then
the list dialog window is narrow, and prompts, even relatively short ones
but which would have to continue on another line, get truncated without
warning. I can't see a way to ensure that the window will always be wide
enough, especially when the list items are unknown in advance.
--
Paul Berkowitz