• 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: cricket <email@hidden>
  • Date: Sun, 14 Jul 2002 19:08:33 -0700

On Sunday, July 14, 2002, at 06:43 PM, Dave DeLong wrote:

I have a problem (this sounds kinda stupid) with the "choose from list" option of AppleScript. If I have a script:

choose from list {myList} with prompt myPrompt
set myChoice to the result

The return value from 'choose from list' will be a list, so your check for whether myChoice is "Books" will always fail. If "Books" is the only chosen item from myList, myChoice will be {"Books"}

So, what you need for the second part is something more like:

if myChoice contains "Books" then
choose from list {myList2} with prompt myPrompt2
end if

if myChoice is "Books" then --for example
choose from list {myList2} with prompt myPrompt2
end if

the second choose from list will not work. Help?

- cricket

----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
Creativity is a mysterious process involving large blocks of aged cheese, a table fan, and a balloon filled with M&Ms.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: "choose from list"
      • From: Paul Berkowitz <email@hidden>
References: 
 >"choose from list" (From: "Dave DeLong" <email@hidden>)

  • Prev by Date: has's list wrappers [Re: Passing *possible* variables to a handler]
  • Next by Date: Re: has's list wrappers [Re: Passing *possible* variables to a handler]
  • Previous by thread: "choose from list"
  • Next by thread: Re: "choose from list"
  • Index(es):
    • Date
    • Thread