12

I'm trying to find an API to control iTunes on OS X. I found the following:

http://developer.apple.com/sdk/itunescomsdk.html

I imagine on OS X, what I need is built in, but I have no idea where the API is documented?

Thanks in advance for any help.

Bill
  • 3,584
  • 5
  • 35
  • 47

4 Answers4

12

If you are using Cocoa then I would recommend the (non-apple) framework EyeTunes.

Applescript may be your best bet though, either through calling a script directly or the ScriptingBridge framework available for Ruby, Python, and Objective C.

For the documentation, look at iTunes script dictionary (drag the iTunes icon onto the Script Editor icon).

cobbal
  • 69,903
  • 20
  • 143
  • 156
5

AFAIK, There is only an SDK (via COM) for Windows.

In Mac OS, iTunes is controlled via AppleScript.

There are quite a few tutorials running around, but I'm not familiar with anything official. In fact, last time I looked, they gave links to third-parties.

e.g., Tutorial

Uri
  • 88,451
  • 51
  • 221
  • 321
  • If you wan't to "listen" track change events, you might look at this similar question : http://stackoverflow.com/questions/4888816/objective-c-mac-os-x-distributed-notifications-itunes – ıɾuǝʞ Jun 05 '14 at 08:40
4

If you are looking for the API spec for the OSX applescript interface then run the AppleScript Editor (comes with OSX) and select File->Open Dictionary and choose iTunes from the list.

Daniel
  • 2,087
  • 3
  • 23
  • 37
0

There is also Karelia's iMedia Browser. Source available under a BSD-style license.

mb21
  • 34,845
  • 8
  • 116
  • 142