Events And Mac Itunes


Does the Mac version of iTunes generate events which can be detected by AppleScript or a scripting language such as Perl.

The Windows version of iTunes generates COM object events such as OnPlayerPlayEvent, OnDatabaseChangedEvent but I cannot find equivalent signals in the Mac documentation.

I'm on a project for which regular polling of iTunes' state is not enough because one of the things Im looking for is whether a track has been deleted. It would be too processor expensive to read and compare the entire database every 5 seconds. Thus my need for detection of events