Skip to content

An iTunes wrapper class for controlling iTunes on macOS

License

Notifications You must be signed in to change notification settings

kmikiy/iTunesAppleScript

Repository files navigation

iTunesAppleScript

An iTunes wrapper class for controlling iTunes on macOS.

This wrapper class was originally created for SpotMenu.

Installation

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'
end

Then, run the following command:

$ pod install

Usage example

import 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()

About

An iTunes wrapper class for controlling iTunes on macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published