Processing folders two levels deep

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

Moderator: Mr_Noodle

Processing folders two levels deep Mon Dec 13, 2021 6:28 pm • by drjct
Hello, I tried to figure this out on my own but to no avail; I want to know if this is something Hazel can even do or if I should find another method

I know I can run rules on files 1 level deep (as per https://www.noodlesoft.com/manual/hazel ... ubfolders/ and https://www.noodlesoft.com/kb/going-into-subfolders/

Here is my folder structure:

Code: Select all
FolderA/
├─ FolderA1/
│  ├─ data/
│  │  ├─ rawdata.csv
├─ FolderA2/
│  ├─ data/
│  │  ├─ rawdata2.csv


I want Hazel to watch FolderA but run rules on rawdata.csv and rawdata2.csv. Can Hazel do this? Thanks in advance for any advice.
drjct
 
Posts: 2
Joined: Mon Dec 13, 2021 6:22 pm

Re: Processing folders two levels deep Tue Dec 14, 2021 10:22 am • by Mr_Noodle
That chapter shows how to get Hazel to go as deep as possible. You need to add extra logic to limit it for that rule.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Processing folders two levels deep Tue Dec 14, 2021 8:53 pm • by drjct
Thanks for the tip! Splitting it up into multiple rules did the trick. Sorry for not reading the documentation as thoroughly as I should have :D
drjct
 
Posts: 2
Joined: Mon Dec 13, 2021 6:22 pm


Return to Support

cron