Page 1 of 1

Trouble getting Go into subfolder to work

PostPosted: Mon Nov 24, 2025 4:09 am
by andy_vdg
Hi everyone,

I’m building an automated photo-processing workflow with Hazel, but I’ve run into a structural limitation, and I’d like to confirm whether there’s a clean, supported way to solve it.

I have one monitored folder: /Pictures/

Rule 1:
Detects new image files (jpg, heic)
Sorts into subfolder with pattern Pictures [date created (yyyy)]>[date created (yyyy-mm-dd)]
resulting in a new folder with the images in it e.g. /Pictures/Pictures 2025/2025-01-01

This folder does not exist before Hazel creates it.
After the folder is created and files are placed into it, I want...

Rule 2: to run a shell script, but on the new folder itself, not on the individual images.
That script performs recursive date-fixing and renaming inside the subfolder.

The challenge I have here is that Rule 1 fires for each new image, but I want Rule 2 to only fire once for the new folder. I also would like to avoid having to monitor each year's folder individually as that becomes unwieldy pretty quickly.

I have added a Go into subfolder rule between Rule 1 and Rule 2 containing the "Run rules on folder contents" action, as described in the documentation. But I cannot seem to get it to do what I want. It either processes every single sub-folder (thousands over decades of pictures) and locks up hazelworker for hours, or I set the rules too tight, and it doesn't do anything.

Is there a way to trigger my Rule 2 on the newly created sub-folder?
Thanks in advance for your help.

Re: Trouble getting Go into subfolder to work

PostPosted: Mon Nov 24, 2025 11:10 am
by Mr_Noodle
If you want to script to run on the newly created folder, then you do not want to go into subfolders.

Instead have a rule match the folder instead of images.

Also, the troubleshooting guide should help with visualizing how the rules are working: https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/

Re: Trouble getting Go into subfolder to work

PostPosted: Mon Nov 24, 2025 12:36 pm
by andy_vdg
It sounds so simple and yet I must be overthinking this or just made a dumb mistake somewhere.
I removed the subfolder step and now only have two rules...
Rule 1 checks for images and sorts them into subfolders
Rule 2 checks for folders and I tell it to look subfolder depth 1 or 2

Preview always shows everything green which is why I am stumped.

I turned on debug and get this log line:

2025-11-24 17:34:03.816 86Z3GCJ4MF.com.noodlesoft.HazelHelper[30059] DEBUG: Ignoring event in directory /Volumes/media/Pictures/Pictures 2021/2021-01-31. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.

Re: Trouble getting Go into subfolder to work

PostPosted: Wed Nov 26, 2025 4:21 am
by andy_vdg
Ok - I cannot figure this out.
How do I match a folder that is two levels deep?
Pictures <-- gets scanned matches no rules
- Pictures 2025 <-- Level 1
-- 2025-01-01 <-- Level 2 - shows up in logs but is always ignored.

Re: Trouble getting Go into subfolder to work

PostPosted: Wed Nov 26, 2025 10:05 am
by Mr_Noodle
I thought you wanted to process the new folder at the top level ("Pictures 2025"). Is that not the case?