Looking for changes in file labels

I don’t need anyone to write the exact code, but I am looking for some direction on a new script.

Basically, it would look at a specific folder every 10 seconds and when it noticed a new file or the change to the Finder’s label of existing files, it would send a Growl notification.

As I’ve scripted it now, four lists are generated: FileNames1, Labels1, FileNames2, Labels2
(first set from the first scan of the folders, second from the scan 10 seconds later).

How can I tell AppleScript to compare the two FileNames lists, figure out which ones are new in the second and then create a third list that combines both the new filenames and their associated label designation (just the ranking of the label is fine – i.e. 0, 1, 2, 3… because I can translate those before I send it to Growl).

Many thanks!

Looks like you need two lists of pairs, each with names plus associated labels. These could even be generated as strings with a tab separating name from label, I suppose. You could then go through the later list file by file (i.e., from item = 1 to count of items in list), looking for pair matches in the first list. If either the filename or the matching file’s label or both were different in the second list, the pair would be written to a third list.