AppleScript I wrote in 2005 that loops through an iTunes library and compiles statistics like total songs, total play counts, and total play time.