• 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: Timothy Bates <email@hidden>
  • Date: Wed, 20 Jul 2005 11:10:17 +1000
  • Thread-topic: Choose from list

Chris Nebel wrote
> Consider this instead:
> set theList to {"Lying", "Sitting", "Standing", "All"}
> set theChoice to (choose from list theList default items {"All"} with
> prompt "Select Blood Pressure(s) to Plot." with multiple selections
> allowed)
> set m to {}
> repeat with i from 1 to number of items in theList
>      if item i of theList is in theChoice then copy i to end of m
> end repeat
> m

Wouldn't it be nice if the system wide list choice handler could have an
option "return indices|item names". Or just return an associative array.

tim


 _______________________________________________
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: Michelle Steiner <email@hidden>
    • Re: Choose from list
      • From: Adam Wuellner <email@hidden>
References: 
 >Re: Choose from list (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Defing a Path correctly
  • Next by Date: Re: what happened to Mail's scripts menu?
  • Previous by thread: Re: Choose from list
  • Next by thread: Re: Choose from list
  • Index(es):
    • Date
    • Thread