Page 1 of 1

Trigger when all files moved

PostPosted: Mon Jun 17, 2024 11:19 am
by Zac
I have a shell script that I want to run one some files that I have Hazel move from my Download directory. It works on all of the files in the directory (currently) so I don't want to call it while Hazel is moving files.

Is there a way to get Hazel to trigger a shell script if there are no files of a specific extension in the Downloads?

Re: Trigger when all files moved

PostPosted: Tue Jun 18, 2024 8:37 am
by Mr_Noodle
You can use nested conditions (check the manual) to match a folder based on its contents. Note, though, that you will need to monitor the folder that contains that folder since rules do not apply to the monitored folder.

Re: Trigger when all files moved

PostPosted: Wed Jun 19, 2024 1:33 pm
by Zac
Thanks. I'll give that a try and see what I can come up with