An iTunes wrapper class for controlling iTunes on macOS.
This wrapper class was originally created for SpotMenu.
To integrate iTunesAppleScript into your Xcode project using CocoaPods, specify it in your Podfile:
platform :osx, '10.10'
use_frameworks!
target '<Your Target Name>' do
    pod 'iTunesAppleScript', '~> 0.3'
endThen, run the following command:
$ pod installimport iTunesAppleScript
// Get current artist
if let artist = iTunesAppleScript.currentTrack.artist {
    print(artist)
}
// Get current track title
if let title = iTunesAppleScript.currentTrack.title {
    print(title)
}
// Play next song
iTunesAppleScript.playNext()