Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'win32ole'
- itunes = WIN32OLE.new('iTunes.Application')
- library = itunes.LibraryPlaylist
- tracks = library.Tracks
- tracks.each {|song| puts "%s by %s (%d)" % [song.Name, song.Artist, song.PlayedCount] if song.PlayedCount > 20}
- sleep 0.5
Add Comment
Please, Sign In to add comment