Page 1 of 1

Move files from folders called "Rejected"

PostPosted: Tue May 23, 2017 10:16 am
by Numork
I need your help. Maybe it is possible, but I did not find a solution.
I have a folderstructure a bit like:

TESTFOLDER
|- Folder 1
| |-Rejected
|
|- Folder 23
| |-Rejected
|
|- Folder XY
| |-Folder ZZ
| |-Rejected
|
|- Rejected

I need a rule on TESTFOLDER that will move all files that are in folders called Rejected. No file in any other folder should be moved.
The folderstructure inside TESTFOLDER changes from time to time so I need to have a rule that is independent from the structure inside.

Thanks in advance for any help!

Re: Move files from folders called "Rejected"

PostPosted: Tue May 23, 2017 11:25 am
by Mr_Noodle
See this article about going into subfolders: https://www.noodlesoft.com/manual/hazel ... ubfolders/

Also, to match files that are in the Rejected folder, you need to use a nested condition: https://www.noodlesoft.com/manual/hazel ... onditions/

The nested condition would look something like:
Code: Select all
   If (all) are met
      If (all) are met for (the enclosing folder)
          Name is Rejected


You'll need to tweak it to better fit your case but that's the basic gist of it.