Re: "choose from list"
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.