[Solved] Applescript: number list of words according to their occurrence in the sequence

AppleScript is not the right tool for this job, so while the following solution works, it is sloooow. (For better performance, you’d need full hash-table functionality, which AppleScript doesn’t provide – AppleScript’s record class is severely handicapped by the inability to specify keys dynamically, at runtime, via variables – third-party solutions exist, though (e.g., http://www.latenightsw.com/freeware/list-record-tools/)). … Read more