• 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
Coordinating lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coordinating lists


  • Subject: Coordinating lists
  • From: Fraser <email@hidden>
  • Date: Tue, 02 Apr 2002 14:17:30 -0500

I need to get an item's position and value based on a choice from another
list. The values in lines 4 and 5 are placeholders. Any pointers?

Thanks,
Fraser


set list1 to {"Apple", "Banana", "Grape", "Orange"}
set list2 to {34, 56, 56, 8}
set theItem to choose from list list1
set theNum to 0
set theCode to 0
display dialog ("You chose " & theItem & ", Item " & theNum & ", Code " &
theCode) as string
_______________________________________________
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: Coordinating lists
      • From: Steven Angier <email@hidden>
    • Re: Coordinating lists
      • From: Mr Tea <email@hidden>
    • Re: Coordinating lists
      • From: Matthew Stuckwisch <email@hidden>
  • Prev by Date: Vanilla Quickies
  • Next by Date: Re: Coordinating lists
  • Previous by thread: Vanilla Quickies
  • Next by thread: Re: Coordinating lists
  • Index(es):
    • Date
    • Thread