Hazel Action to Run python script any time file is added

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

Moderator: Mr_Noodle

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?
JohnBurk
 
Posts: 1
Joined: Sat May 06, 2017 2:07 pm

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".
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support