Okay, notification is a breeze.
iTunesRater now has two new features:
- Doesn’t poll, waits for notification from iTunes (requires 4.7.1)
- Volume Adjustment
Instead of polling iTunes every 5 seconds, the information is only checked when iTunes sends a general notification to the NotificationCenter. This should mean less CPU use, not that I was using much anyway. To get this to work well, I had to notify the AppleScript that a change had been made, by ‘pressing’ one of the interface items. Slightly unorthodox, but effective.
Also, a few of my CDs are softer than the rest, I now have a volume adjustment slider on the left hand side that can be used to modify the volume of the current track - don’t use this as your master iTunes volume, it writes the data into your library, so that track will become louder or softer each time you play it.
I might actually make this into a fully-fledged iTunes Controller, with AutoRating features.
Later. Time to sleep.