A Lookup Function?
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