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 2m 4s ago
Import enabled CD tracks and automatically eject CD when finished
downloaded 6m 21s ago
Create playlists by artist
downloaded 12m 17s ago
Remove iTunes tracks disassociated from files
downloaded 19m 40s ago
Display, create text file listing info of dead tracks
downloaded 21m 59s ago
Import CD tracks using any encoder on the fly
downloaded 24m 27s ago
Copy Artist to Album Artist of selected tracks