How do you listen to notifications from iTunes on a Mac (Using the NSDistributedNotificationCenter)

后端 未结 2 1961
长发绾君心
长发绾君心 2020-12-10 18:07

Looking for help/tutorials/sample code of using python to listen to distributed notifications from applications on a mac. I know the py-objc lib is the bridge between python

2条回答
  •  渐次进展
    2020-12-10 18:52

    The source code for GrowlTunes might give you some clues here. You'd have to translate from Objective-C to PyObjC, but eh, whatever. :)

    GrowlTurnesController.m (Or grab the whole growl source tree and navigate to GrowlTunes so you can see it all in action.: here's a link to the directions on how to get the source

提交回复
热议问题