Page 1 of 1

Run script for new files in subfolders

PostPosted: Mon May 02, 2022 5:10 pm
by karth
Hi there, I'm relatively new to Hazel and I'm struggling to run a simple bash script based on whether any file gets added to any of the subfolders within the main folder I'm monitoring. Could someone tell me how to do this?

Re: Run script for new files in subfolders

PostPosted: Tue May 03, 2022 8:56 am
by Mr_Noodle
Do you want the script to run on the new files or on the folders containing them?

Re: Run script for new files in subfolders

PostPosted: Tue May 03, 2022 11:22 am
by karth
On the parent folder... Honestly the script is agnostic to any location and merely asks my media manager to rescan its pre configured folders..

Re: Run script for new files in subfolders

PostPosted: Wed May 04, 2022 11:08 am
by Mr_Noodle
Check the manual for the chapter on syncing folders. While the action you are taking is different, the rule there and the caveats associated with it apply.

Re: Run script for new files in subfolders

PostPosted: Thu May 05, 2022 11:41 am
by karth
Thank you that worked.

Mr_Noodle wrote:Check the manual for the chapter on syncing folders. While the action you are taking is different, the rule there and the caveats associated with it apply.