• 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: Robert Poland <email@hidden>
  • Date: Sun, 16 Oct 2005 09:32:52 -0600

Hi,

I have this line in a script;

set theChoice to (choose from list theList default items theDefaultList with prompt "Select Calendar")

I know how to get the text returned, but I would like to get the number of the item chosen.

Page 337 of Matt's book doesn't even address this situation.

Where else can I go to find this answer?

Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/

Found it.

Appears that there is no command to do this.

Found this From: Christopher Nebel <email@hidden> - 7/19/05

set theChoice to (choose from list theList default items theDefaultList with prompt "Select" with multiple selections allowed)
set m to {}
repeat with i from 1 to number of items in theList
if item i of theList is in theChoice then copy i to end of m
end repeat


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


References: 
 >Choose from list (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Choose from list
  • Next by Date: Re: Is Classic running?
  • Previous by thread: Re: Choose from list
  • Next by thread: Days and hours
  • Index(es):
    • Date
    • Thread