-------------------------------------------------------------------------------------------
# TIDs
on lookupMnemonic(_mnemoic)
set {oldTIDS, AppleScript's text item delimiters} to {AppleScript's text item delimiters, {_mnemoic & tab}}
text items of lookupTable
set _output to paragraph 1 of text item 2 of lookupTable
set AppleScript's text item delimiters to oldTIDS
return _output
end lookupMnemonic
lookupMnemonic("94d0")
-------------------------------------------------------------------------------------------
on lookupMnemonicSIO(_mnemoic)
try
set _mnemoic to "^" & _mnemoic & "\\t(.+$)" find text _mnemoic using
"\\1" in
lookupTable with regexp
and string result
without case sensitive
on error
return false
end try
end lookupMnemonicSIO
lookupMnemonicSIO("94d0")
-------------------------------------------------------------------------------------------