$ 0 0 Two thoughts: Maybe Alfred is easier for this use case AppleScript is, imho, not the best language for advanced data structures. In JavaScript, you’d simply have an array of objects.