Trigger when all files moved

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

Moderator: Mr_Noodle

Trigger when all files moved 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?
Zac
 
Posts: 10
Joined: Mon Feb 06, 2023 5:49 pm

Re: Trigger when all files moved 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.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Trigger when all files moved Wed Jun 19, 2024 1:33 pm • by Zac
Thanks. I'll give that a try and see what I can come up with
Zac
 
Posts: 10
Joined: Mon Feb 06, 2023 5:49 pm


Return to Support