Re: Choose from list
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