• 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: Choose from list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Choose from list
      • From: Robert Poland <email@hidden>
References: 
 >Choose from list (From: Robert Poland <email@hidden>)

  • Prev by Date: Choose from list
  • Next by Date: Re: Choose from list
  • Previous by thread: Choose from list
  • Next by thread: Re: Choose from list
  • Index(es):
    • Date
    • Thread