Re: Choose from list
Re: Choose from list
- Subject: Re: Choose from list
- From: Andrew Oliver <email@hidden>
- Date: Tue, 19 Jul 2005 10:21:11 -0700
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
:)
_______________________________________________
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