Move files from different folders that match specifics

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

Moderator: Mr_Noodle

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.
dr.cox
 
Posts: 3
Joined: Thu Jul 08, 2021 6:58 am

Do you want to move the files within the _rejected folder or the _rejected folder itself?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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
dr.cox
 
Posts: 3
Joined: Thu Jul 08, 2021 6:58 am

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

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?
dr.cox
 
Posts: 3
Joined: Thu Jul 08, 2021 6:58 am

Check the manual on subfolders. There's a whole chapter on it.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support