• 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: Get Item Number of List Item Choice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get Item Number of List Item Choice?


  • Subject: Re: Get Item Number of List Item Choice?
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 12 Oct 2004 12:49:15 -0700


On Oct 12, 2004, at 11:10 AM, Johnny AppleScript wrote:

Is there a better way to do this?

Smart-ass answer for the question exactly as written:

set theList to {"A", "B", "C", "D"}
set theChoice to (choose from list theList) as string
set a to (ASCII number of theChoice) - 64

-- Michelle

--
Discordians don't pray: it is far too dangerous.

_______________________________________________
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: 
 >Get Item Number of List Item Choice? (From: Johnny AppleScript <email@hidden>)

  • Prev by Date: Re: Test image properties?
  • Next by Date: Re: Test image properties?
  • Previous by thread: Get Item Number of List Item Choice?
  • Next by thread: Test image properties?
  • Index(es):
    • Date
    • Thread