Page 1 of 1

Deleting Empty Folders after Running Rules

PostPosted: Fri Sep 24, 2010 10:56 pm
by nickgoodenough
Trying to process a DCIM folder from a digital camera to rename and move the image files and then delete the now empty DCIM and other empty sub folders.

File Structure

DCIM
...1300
......img001.jpg
......img002.jpg
...1400
......img001.jpg
......img002.jpg

Hazel Rules
1. Delete empty folder.
2. Rename and move images.
3. Dig into folder contents.

Hazel only runs one rule per file/folder so this has not worked. Anyone have a solution?

Tried using an applescript solution and haven't had luck. Would love a Hazel action only fix.

Re: Deleting Empty Folders after Running Rules

PostPosted: Tue Sep 28, 2010 2:07 pm
by Mr_Noodle
How does it look in the preview? Yes, only one rule matches but over time conditions change. For instance, a non-empty folder shouldn't match the first rule so it will eventually match rule 3, which is what you want. Once it becomes empty, it will match rule 1. This is all assuming you set up the conditions correctly. Feel free to post here or email me the rules if you want me to double-check.