Skip to content
This repository has been archived by the owner. It is now read-only.

PhilipTrauner/iTunesConnector

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Disclaimer

Please don't use this. I'm currently working on a much better solution that doesn't require over 2000 lines of code and works with every ScriptingBridge capable application.

iTunes Connector

Abstraction layer around ScriptingBridge to control iTunes with style.

Installation

Clone the repo

git clone https://github.com/PhilipTrauner/iTunesConnector

Navigate into cloned repo

cd iTunesConnector

Run install script

python setup.py install

Usage Example

from iTunesConnector import iTunes

itunes = iTunes()

# Starting track
itunes.play()
# Get album of current track
print(itunes.current_track.album)
# Get length of current playlist
print(itunes.current_playlist.time)
# Get genre of currently highlighted tracks
for song in itunes.selection:
	print(song.genre)
# Playing 11th track of current playlist
itunes.play(itunes.current_playlist.tracks[10])

About

Python abstraction layer around ScriptingBridge to control iTunes with style.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages