Skip to content
This repository has been archived by the owner on Jul 8, 2018. It is now read-only.

Python abstraction layer around ScriptingBridge to control iTunes with style.

Notifications You must be signed in to change notification settings

PhilipTrauner/iTunesConnector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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