I am seeing some strange behaviour from Hazel and I suspect it may be some kind of timing issue or race condition...
I have a few questions to help me troubleshoot this:
1. When multiple files get added to a folder that is monitored by Hazel, does it process each file, through all of the rules defined on that folder, first before starting the next one? Or does it process the files in parallel?
2. When a file gets renamed as part of rule processing that file may now match other rules that it didn't previously match? Is this re-evaluation performed as part of this processing pass i.e. will any newly matching rules be processed 'now' for the file or does Hazel wait for the next 'scan' of the folder and essentially treat the renamed file as a new file?
3. If a rule calls a shell script as an action and that shell script renames the file, how is that handled? Since Hazel doesn't know that the file has been renamed will the renamed file not get processed now until the next 'scan' of the folder? And if so, presumably other files may get processed prior to that happening?
4. What exactly triggers Hazel to 'rescan' a folder? I assume it uses file system event notification and/or folder actions but those are not foolproof in my experience; does it also use a time based polling mechanism as a fallback?
Thanks,
Chris