A REST API for OS X (iTunes, Spotify, etc.) via osacript.