Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 294 Bytes
require 'rubygems'
require 'appscript'
module Itunes
class Library
def initialize
@library = Appscript::app('iTunes').sources['Library']
end
def tracks
@library.playlists['Music'].tracks
end
def artists
tracks.artist.get.uniq
end
end
end
Something went wrong with that request. Please try again.