Check Folder Contents and Move if True

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Check Folder Contents and Move if True Thu Oct 12, 2017 3:09 pm • by seaneee
I'm looking for a bit of help creating a rule that analyzes folder contents and then moves the entire folder, not just the contained file.

For example. If I download a music archive and expand it, the contents might contain MP3s, cover art and a booklet. I'd like Hazel to check for music files and if the rule is true, move the entire folder.

Additionally, is there a way to do the same with archived files without expanding them?

Apologies if this is an obvious ask, I'm a little gun-shy after running a rule set that wreaked havoc on my downloads folder.
seaneee
 
Posts: 1
Joined: Thu Oct 12, 2017 2:53 pm

Re: Check Folder Contents and Move if True Fri Oct 13, 2017 9:48 am • by Mr_Noodle
Search the manual for "nested conditions". Using those, you can have a condition match a folder based on its contents. You can't have it operate on archives, though.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion