• 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
A Lookup Function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A Lookup Function?


  • Subject: A Lookup Function?
  • From: Marconi <email@hidden>
  • Date: Mon, 24 Jan 2011 10:30:36 -0700

Is there a lookup function in AppleScript that will look in a list of values (a table?) and get a corresponding value?

I want to create a simple "Phonetic Alphabet" app which, when run, pops up a dialog to allow entry of something (a serial number, email address, etc) and when the dialog is dismissed present a window showing the phonetic alphabet equivalent so I can read it to a support person using the correct phonetic alphabet.

For example, I'd enter "email@hidden" and it would parse each character and pop up a window with the text:

Mike Alpha Romeo Charlie Oscar November India at Mike Delta Charlie Charlie Lima X-ray X-ray Victor India dot Charlie Oscar Mike.

My lookup table would be:

A	Alpha
B	Bravo
...
Z	Zulu
1 one
2	two
...
9	nine
@	at
.	dot
etc.

What's the most efficient way to store and initialize the table, and look up the values?






_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: A Lookup Function?
      • From: Christopher Stone <email@hidden>
    • Re: A Lookup Function?
      • From: Steve Thompson <email@hidden>
    • Re: A Lookup Function?
      • From: Christopher Stone <email@hidden>
    • Re: A Lookup Function?
      • From: Luther Fuller <email@hidden>
    • Re: A Lookup Function?
      • From: BareFeetWare <email@hidden>
    • Re: A Lookup Function?
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: getting focus, slow getting icon position in window
  • Next by Date: passing handler problems and a resolution
  • Previous by thread: Re: getting focus, slow getting icon position in window
  • Next by thread: Re: A Lookup Function?
  • Index(es):
    • Date
    • Thread