I'm trying to get Hazel to add a Spotlight comment to music files that have been automatically added to the iTunes Music folder. iTunes is set to manage the media folder. A rule is in Hazel to watch the iTunes "Music" folder and add a Spotlight comment to the music files. But, nothing happens when music files are dropped onto iTunes (or CDs are ripped by or music is purchased in iTunes). … I assume this has something to do with iTunes not telling the Finder that anything has happened to the Music folder when it adds music to it.
Any ideas?
The reason I'm trying to add a Spotlight comment to the music files is there are multiple users on my Mac, but we all share one iTunes Media folder location (you can specify a central location in iTunes prefs under "iTunes Media folder location"). What I'm trying to do is create a way to notify users when other users add music to the computer.
When each user adds music to iTunes, the music files themselves are added to the central location (in this case on an external HD) because iTunes is set to "copy files to iTunes when added to library." BUT, the music entry only shows up in the iTunes window for the user that added it (that's just how it works). All other users must first know that new music is available, and then manually drag the music files from the central location onto their iTunes window for it to show up in their iTunes.
So, if I can tag the music files as they are added with the user's name, then I can create smart folders for each user that search the music folder for files that DON'T have their name, meaning it's new music to them. Then they can look inside the smart folder and see that new music is available and decide if they want to add it or not. Then, using a simple Automator action, that user can add their name to the Spotlight comments for those music files, signifying that they have reviewed the new music, causing their smart folder to be empty.