Page 1 of 1

Run script on file upon adding to new folder?

PostPosted: Sat Dec 18, 2010 9:01 pm
by silentsim
edit: figured it out

question: i have hazel to run a script on new files only added to a folder...

however if i add a rule to delete the file after running the script it wont finish converting as it attempts to delete it...

how would i make a rule to dlete the file POST conversion?

Re: Run script on file upon adding to new folder?

PostPosted: Wed Dec 29, 2010 2:36 pm
by Mr_Noodle
You figure it out but I thought I'd reply anyways in case someone else runs into this. In this case, I'm guessing you want to put the delete action in the same rule as the one that runs the script. Hazel runs actions within a rule sequentially, waiting for the previous one to finish. There are some exceptions (like opening a file) where Hazel has no way of telling when it's done but in general, that's the way things work.

If you have a different solution (or I misread the problem), post back here as I'm curious as to what happened.