Deleting Empty Folders after Running Rules

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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.
nickgoodenough
 
Posts: 1
Joined: Fri Sep 24, 2010 10:46 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support