Re: Choose from list
Re: Choose from list
- Subject: Re: Choose from list
- From: Robert Poland <email@hidden>
- Date: Tue, 19 Jul 2005 13:05:17 -0600
On 7/19/05 10:07 AM, "Robert Poland" <email@hidden> wrote:
Hi,
I am having trouble figuring out the options of "Choose from list".
The script below works as expected but adding "default items" and
"multiple selections allowed" generates errors.
For example "set theChoice to (choose from list theList multiple
selections allowed)" creates an error.
Is this a bug or just not the usual method?
set theList to {"Lying", "Sitting", "Standing", "All"}
set theChoice to (choose from list theList) -- , multiple
selections allowed
Ahh, one of te vagaries of AppleScript.
Since 'multiple selections allowed' is an optional parameter you need to
include a 'with' keyword:
set theChoice to (choose from list theList with multiple selections
allowed)
It's strange because if you also add the default items option, that goes
before the with:
set theChoice to (choose from list theList default items {"All"} with
multiple selections allowed)
But there you go.
Andrew
:)
Thanks Andrew and Michelle,
Thought that would do it, took a while to get "with prompt" running too.
set theChoice to (choose from list theList default items {"All"} with
prompt "Select Blood Pressure(s) to Plot." with multiple selections
allowed)
Now if I can just figure out how to get the result of the multiple choice.
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden