Move files from different folders that match specifics

Posted:
Thu Jul 08, 2021 7:05 am
by dr.cox
Dear Forum,
I've owned hazel for a good number of years only running two simple rules. This needs to change. I do have a pictures folder, that contains many subfolders. Many of these subfolders each contain a folder named "_rejected". Subfolder depth varies.
what I'd like to do is to move files from these different folders to trash.
Probably simple enough but I can't wrap my head around it. Hope some kind soul can help.
Cheers, stay safe.
J.
Re: Move files from different folders that match specifics

Posted:
Thu Jul 08, 2021 10:16 am
by Mr_Noodle
Do you want to move the files within the _rejected folder or the _rejected folder itself?
Re: Move files from different folders that match specifics

Posted:
Thu Jul 08, 2021 10:18 am
by dr.cox
Mr_Noodle wrote:Do you want to move the files within the _rejected folder or the _rejected folder itself?
The files within. The folders should stay.
Cheers
Re: Move files from different folders that match specifics

Posted:
Fri Jul 09, 2021 10:17 am
by Mr_Noodle
You can try using a nested condition like:
- Code: Select all
If (all) are met
...
If (all) are met for (the enclosing folder)
Name is _rejected
That will match any items in a _rejected folder. You'll need to play with it but that should give you the basic gist.
Re: Move files from different folders that match specifics

Posted:
Fri Jul 09, 2021 2:35 pm
by dr.cox
Mr_Noodle wrote:You can try using a nested condition like:
- Code: Select all
If (all) are met
...
If (all) are met for (the enclosing folder)
Name is _rejected
That will match any items in a _rejected folder. You'll need to play with it but that should give you the basic gist.
Terrific. Thanks a lot.
Will that work with multiple subdirectories that each have such a folder? Any chance to achieve that without coding and instead using the program interface?
Re: Move files from different folders that match specifics

Posted:
Mon Jul 12, 2021 9:05 am
by Mr_Noodle
Check the manual on subfolders. There's a whole chapter on it.