Page 1 of 1

Hazel Action to Run python script any time file is added

PostPosted: Sat May 06, 2017 2:12 pm
by JohnBurk
I'm trying to Have Hazel automatically run a script anytime I add a file to a folder. I've come up with this script below:

Image

When I open the Hazel pref pane and choose "Run Rules Now" the script does indeed run successfully, but when I just add a file to the folder that has the Hazel action, it doesn't run. Any suggestions as to how to make the Hazel action trigger when a file is added to the folder?

Re: Hazel Action to Run python script any time file is added

PostPosted: Mon May 08, 2017 10:53 am
by Mr_Noodle
Check the logs. It's possible triggering is broken for that folder for various reasons. Add a file and if there's no activity in the Hazel log, then something is wrong. In that case, please report back on anything of note about the folder in question (Dropbox folder, network share, external drive, etc.).

Also, a better way to structure your rule is to do "Date added is after date last matched".