问题
Is there a way (ofcourse there is a way, but which way) to get info about the song currently playing in iTunes on a Mac (OS 10.5.8 and OS 10.6) programmatically?
I need this for my Cocoa application.
I use iTunes 8 and Objective-C.
回答1:
Use the Scripting Bridge to ask iTunes. iTunes is even the example that the docs use.
来源:https://stackoverflow.com/questions/1327779/get-current-playing-song-using-cocoa