In my previous article, Scripting iTunes with Perl - Part 1, I demonstrated how the iTunes COM object can be used with Perl. In this article I will be showing you how to catch events from iTunes. The example script below catches the ‘OnPlayerPlayEvent’ and then displays the cover art from the current track in a Tk window.
