Creating names of lists w/index
I have a document with let's say 1000 words. I want to count how many unique words I have in the document. That is, I want to count how many times the word the is used; how many times the word one is used, etc. Each word that is found will create a record containing the literal word itself and the total number of times it was to be found inside the document.
Word count of the document each time the script will be used is unknown. Though after doing a word count and having a total of T words to the document, I want to: Set record(i to T) to {}, so I can initialize the records. Name of the record + an index before the program starts to fill the record is not easily seen to be done.
I wonder if anyone here knows if AppleScript can do this. I never did figure it out, having found the need for this type of coding when I was practicing C++.
KLH
New York City
|