• 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: Robert Poland <email@hidden>
  • Date: Tue, 19 Jul 2005 13:41:49 -0600

On Jul 19, 2005, at 12:05 PM, Robert Poland wrote:

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)


Now if I can just figure out how to get the result of the multiple choice.

I don't understand your needs here.

The result of the multiple choice is a list containing the chosen items. Exactly what are you trying to do?

-- Michelle

--
I've noticed lately that the paranoid fear of computers becoming intelligent and taking over the world has almost entirely disappeared from the common culture. Near as I can tell, this coincides with the release of MS-DOS.
-- Larry DeLuca

Got it

set theList to {"Lying", "Sitting", "Standing", "All"}
set theChoice to {}
set theChoice to (choose from list theList default items {"All"} with prompt "Select Blood Pressure(s) to Plot." with multiple selections allowed) as string
set m to {}
set n to 0
repeat with i from 1 to number of items in theList
set x to item i of theList
set n to n + 1
if x is in theChoice then copy n to end of m
end repeat
m


Thanks,
--
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


  • Follow-Ups:
    • Re: Choose from list
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Choose from list (From: Andrew Oliver <email@hidden>)
 >Re: Choose from list (From: Robert Poland <email@hidden>)
 >Re: Choose from list (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Defing a Path correctly
  • Next by Date: Incrementing variables
  • Previous by thread: Re: Choose from list
  • Next by thread: Re: Choose from list
  • Index(es):
    • Date
    • Thread