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

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

Moderator: Mr_Noodle

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.
lauio
 
Posts: 2
Joined: Thu Nov 19, 2015 7:27 am

Can you describe specifically what you tried with the subfolder rule and how it didn't work?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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.
lauio
 
Posts: 2
Joined: Thu Nov 19, 2015 7:27 am

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


Return to Support