TIMOB-12740: Refactor script to use proper AppleScript types and iTunes idioms.
Merge pull request #4629 from matt-langston/timob-12740

TIMOB-12740: Refactor script to use proper AppleScript types and iTunes idioms.