This script will examine each track in the entire iTunes library--or a selection of tracks--for items purchased from the iTunes Store (audio, video, and audiobooks) and then sort them by either the purchaser's name or account ID into discrete playlists, eg: "Purchased by Tom Ryan" or "Purchased by firstname.lastname@example.org".
Purchaser information is gleaned by examining the track's local file (purchase info for iTunes Match tracks in the cloud is inaccessible and cloud tracks will be ignored), which, depending on file location and access speed, may take as long a second per track. Just sayin'.
OS X 10.6 or later only. Previous universal version available at the link below in the "Info" section.
Sort using the purchaser's name or account ID. Sorting by Name is faster; ascertaining the account ID requires a bit more processing per track. Either way, you'll probably have time to go grab some coffee while the script is working.
Sync files between a designated playlist and folder
Remove iTunes tracks disassociated from files
Change case of selected track names to sentence caps
Export selected playlists as individual XML or M3U files
Renumber order of selected tracks
Download any or all available subscribed Podcast episodes not yet downloaded