• 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: About multiple selections in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >About multiple selections in a list (From: "francois.houle" <email@hidden>)

  • Prev by Date: Re: Scripting Illustrator CS
  • Next by Date: [ANN] April Boston AppleScript User Group Meeting
  • Previous by thread: About multiple selections in a list
  • Next by thread: [ANN] April Boston AppleScript User Group Meeting
  • Index(es):
    • Date
    • Thread