Page 1 of 1

Help with sub-folder rule [driving me bonkers :)]

PostPosted: Thu Nov 19, 2015 7:32 am
by lauio
I've been trying every combination possible for the last few days and can't for the life of me figure this out :/ Help? :) Please? :)

Structure:

/Photo/Vacation/1.mp4

/Photo = parent/root folder

Once the Vacation folder with the mp4 gets dropped in there. How do I make it so Hazel searches for all files named "1.mp4" that's 1 sub-folder depth away or greater (in the Vacation folder in this case... basically, I want a rule that will look into each folder that gets dropped into the Photo parent folder), and then move it to the trash?

I've tried everything in viewtopic.php?f=4&t=470 ... any every combination as possible that I can think of, but there's always a gotcha.

Re: Help with sub-folder rule [driving me bonkers :)]

PostPosted: Thu Nov 19, 2015 11:58 am
by Mr_Noodle
Can you describe specifically what you tried with the subfolder rule and how it didn't work?

Re: Help with sub-folder rule [driving me bonkers :)]

PostPosted: Fri Nov 20, 2015 1:12 am
by lauio
I tried:

Code: Select all
[All]
Kind is Folder
with nested rule extension .mp4

[match]
Run Rules on folder contents
Set color to RED (I'm using this rule for the moment so nothing gets trashed just yet)
[/code]

I've tried a lot of other combinations, but the problem I seem to keep running into is.... the rule will run on the "Vacation" folder, but won't apply to the files inside. OR, if I set the kind to "file", it won't dive past the "Vacation" level.

Essentially, I just want it to find "1.mp4" no matter what level it's on, and delete it.

Re: Help with sub-folder rule [driving me bonkers :)]

PostPosted: Fri Nov 20, 2015 10:58 am
by Mr_Noodle
What you have now is matching folders that contain mp4s, not the mp4 themselves. See the sticky article about how to go into subfolders. You can't combine them into one rule as you are trying to operate on folders and files in different ways and for that, you need separate rules.