For example, the script returns "Relay Medium Italic" when
the actual font name is "Relay-MediumItalic.AFM". I could search
for any file containing the words "Relay", "Medium", and "Italic",
but there is one problem - there is a large space between the words
"Relay" and "Italic" in the name returned by the script. I could
use a text item delimiter to separate the words, but I can't
identify which TID to use - "space", "tab", "ASCII character 32",
and "ASCII character 11" don't work. Does anyone have any suggestions?
I'd be tempted to avoid TIDs altogether, Garry. Instead, try using
um... 'words':
----------------
set textReturned to "Relay Medium Italic"
words of textReturned --> {"Relay", "Medium", "Italic"}