advertisement

Article:
  Controlling iTunes with Perl
Subject:   Apple Events in iTunes
Date:   2005-09-06 03:25:50
From:   Bill_Palmer
Response to: If only I could install it

Hi Brian


Do you know how to access iTunes Events from Applescript or Perl on Mac OS X.


On the Windows version, the COM object emits events such as OnPlayerPlayEvent and OnDatabaseChangedEvent but I can't find any equivalent in the documentation of the Mac version.


I'm using your Mac::iTunes module to interface with iTunes but the project needs to know when tracks are deleted from iTunes. With events this would be easy but with regular polling of iTunes state it is too processor intensive.