Re: About multiple selections in a list
Re: About multiple selections in a list
- Subject: Re: About multiple selections in a list
- From: Sander Tekelenburg <email@hidden>
- Date: Mon, 25 Apr 2005 21:56:34 +0200
At 15:02 -0400 UTC, on 2005/04/25, francois.houle wrote:
> I have created a list of items which people can choose in a list. Users can
>select multiple answers in there.
> What happens is that each choice selected performs a specific shell script.
>
> example:
> set list_choices to (choose from list {"A", "B", "C"}with multiple
>selections allowed
> if list_choices contains "A" then
> do shell script "my script here"
> If list_choice contains "B" then
> do shell script "my script here"
>
> Etc..
>
> What happens is that if list_choices contains "A" and "B" then it will only
>do the shell script for "A"... I am wondering how I can make it so that it
>does "B" as well...
Just make sure the script actually compiles:
set list_choices to (choose from list {"A", "B", "C"} with multiple
selections allowed)
if list_choices contains "A" then
beep
end if
if list_choices contains "B" then
display dialog "beep"
end if
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
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