rule for: None of the files

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

Moderators: Mr_Noodle, Moderators

rule for: None of the files Sun Jan 05, 2014 3:11 pm • by jomaweb
HI

I have a lot of folders on my iTunes folder.
Some of them are empty because I managed music via iTunes, so when I deleted an album the folder is empty but the JPG cover is in there, and some other files as Lyrics files, and so on...

I need a Rule that detects if ALL the files are not mp3 (or NONE of the files are mp3) and then delete the Folder. No success so far.

Right now I got:

if Kind is Folder
and
Subfolder Depth is 1
Run rules on fodler contents


And this one:

if kind is Folder and
Subfolder Depth is 0 and
Sub-file/folder Count is less than 5
Then Delete folder


The problems is some albums with 2 or 3 tracks are deleted.

any hint would be much appreciated


Thanks
jomaweb
 
Posts: 4
Joined: Sat Nov 17, 2012 1:30 pm

Re: rule for: None of the files Tue Jan 07, 2014 4:33 pm • by Mr_Noodle
You want to hold down option and click the + button to create a new condition. This creates a nested condition. There is an extra pop-up there. You would want to set it to "all of its subfiles...". Then, underneath that, you can add a condition like "Extension is not mp3".
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: rule for: None of the files Sun Jan 12, 2014 6:33 am • by jomaweb
worked!


thanks a lot
jomaweb
 
Posts: 4
Joined: Sat Nov 17, 2012 1:30 pm


Return to Open Discussion