I'm evaluating Hazel to help auto-organize my photo library from DropBox, and am trying resolve inconsistent behavior I'm seeing, presumably due to misconfiguration on my part.
I would like to rename photo files based on the camera device (if it is present in the file's metadata), and then sort them into year and month subfolders. Since I want to sort all pictures irrespective of whether they have the camera metadata, I have set up two rules using the following logic:
RULE 1
If file is a Picture and its Device Model is not blank
Then rename it to "Name - Device Model Extension"
This should give me e.g.
- Code: Select all
2013-02-17 10.13.38 - iPhone 5.jpg
RULE 2
If file is a Picture then
Then Sort into subfolder with pattern Year
Then Sort into subfolder with pattern Year-Month-Date
This gives me e.g.
- Code: Select all
2013/
2013-02-20/
2013-02-23/
... etc ...
I am having trouble getting these to work together reliably. In particular, sometimes the first rule seems to be applied multiple times in succession, and the second rule skipped. This leaves me with JPGs that look like this
- Code: Select all
2013-02-17 10.13.38 - iPhone 5 - iPhone 5.jpg
or sometimes
- Code: Select all
2013-02-17 10.13.38 - iPhone 5 - iPhone 5 - iPhone 5.jpg
at the root level of the folder (i.e. not sorted into subfolders).
I thought this might be because the renamed file is treated like a completely new file (vs just renamed) that Hazel again recognizes and starts processing anew. However if this were the case, wouldn't Hazel just keep doing this forever? Is there some sort of limit that stops it from recursing infinitely? If so, why does it sometimes happen 2 times and sometimes 3?
And most importantly

Thanks in advance for your help.
Ramon