Page 1 of 1

Backup action if rule fails OR skip file on next pass

PostPosted: Sun Nov 08, 2015 12:24 am
by sourcecodemage
Occasionally a file "rename with timestamp" rule I have comes across files that are too long to add the timestamp to, and the Hazel rule fails because of this. That would be ok if I received a single error message and Hazel did not try to process the file again, but it continuously tries to process that problem file and generates an endless number of error messages in my notification center.

Is it possible to configure hazel with some logic that says "it this rule fails, then do this ( something else )" with the file? Failing that, can it be configured to not process files it has already tried to process?

Re: Backup action if rule fails OR skip file on next pass

PostPosted: Mon Nov 09, 2015 11:56 am
by Mr_Noodle
There's no way to do that short of a script. That said, Hazel should not put out notifications for the same error that frequently. It will normally throttle notifications so that for a particular error with a particular file, it will only do it once a day. The exception to this is if you keep running rules manually, which is not really how you are supposed to use the program.

Re: Backup action if rule fails OR skip file on next pass

PostPosted: Mon Nov 09, 2015 2:26 pm
by sourcecodemage
Mr_Noodle wrote:There's no way to do that short of a script. That said, Hazel should not put out notifications for the same error that frequently. It will normally throttle notifications so that for a particular error with a particular file, it will only do it once a day. The exception to this is if you keep running rules manually, which is not really how you are supposed to use the program.


It puts one failure notification out every 20 seconds. The remedy was to disable Hazel and process the file manually. Then I re-enabled Hazel and all was well.

However, I'd rather not have the next error cause an Onslaught of notifications.

Re: Backup action if rule fails OR skip file on next pass

PostPosted: Tue Nov 10, 2015 12:05 pm
by Mr_Noodle
Was it for different files or the same error for the same file?

Re: Backup action if rule fails OR skip file on next pass

PostPosted: Tue Nov 10, 2015 2:15 pm
by sourcecodemage
Mr_Noodle wrote:Was it for different files or the same error for the same file?

Same file. The file name was too long to add the datetime stamp to, which is why it kept failing. I have Hazel notifcations enable in my OS X side bar, and they were very distracting at once every 20 seconds.

Re: Backup action if rule fails OR skip file on next pass

PostPosted: Tue Nov 10, 2015 5:27 pm
by Mr_Noodle
I'll have to look into it but usually if it's the same error on the same file, you shouldn't see it that often. If there was a slight difference in the error message, though, in that case it would be seen as a new error message.