OS X 10.8 or later. Assists with segregating iTunes Match tracks that appear to get cut-off when played (due to a possible bug, described here). Then these truncated tracks can be deleted and re-downloaded intact (by you, not the script).
Perhaps Also of Interest...
downloaded 6m 14s ago
Exports and then re-imports selected tracks' artwork
downloaded 11m 18s ago
Renumber order of selected tracks
downloaded 17m 54s ago
Rename selected tracks' Song Names with their filenames (minus extension)
downloaded 20m 10s ago
Delete empty playlists
downloaded 22m 2s ago
Sort purchased tracks into discrete playlists by name or Apple ID
downloaded 23m 36s ago
Move selected playlists to a new or existing folder