I’d like to control iTunes through Objective-C ( I just can’t get Python appscript installed correctly on my OS/X 10.6.3 system … that would have been my first choice ).
From what I gather, the IPC on Cocoa is based on Apple Events : is there either:
- Online documentation on iTunes / Apple Events API ?
- Instrospection mechanism to get to iTunes API?
I know about Applescript Editor / Open Dictionary functionality but I can’t figure out how to translate the information I see into IPC calls.
Note: I have already tried working out a solution through PyObjC but the main function I am after is track searching which I can’t figure out.
Disclaimer: OS/X super-newbie here.
Have you considered using Scripting Bridge? It’s built into the OS and also works with PyObjC. There’s no distinct searching API because searching is built into AppleScript (whose clauses), which map to NSPredicate in Scripting Bridge.
Also, if you’re new to AppleScript, I highly recommend Script Debugger’s dictionary explorer.