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.