jldupont
jldupont

Reputation: 96836

py-appscript & events

Is it possible to subscribe to events using py-appscript ?

Example: I'd like to get a callback when a user changes a rating on iTunes.

Upvotes: 1

Views: 302

Answers (1)

Nicholas Riley
Nicholas Riley

Reputation: 44341

Some very few applications are recordable: that is, they'll send Apple Events to themselves which can be intercepted. iTunes is not one of these applications. iTunes does send distributed notifications for music start/stop, but not for rating changes. Assuming you don't want to patch iTunes itself, your only real choice is to parse iTunes Music Library.xml.

Upvotes: 1

Related Questions