Page 1 of 1

Rules running more than once

PostPosted: Sun Sep 13, 2020 3:29 pm
by bretkennedy
HI all.
I have a rule that I run on a folder called receipts. The rule is as follows

If all conditions are met
- Date added is today
- Kind is Document
- Extension is not xlsx
Then 'rename' file with current date pattern.

What I am noticing is that sometimes it is running on the same file more than once.
Is there a way that I can have a condition that it stops? or do I need to setup a second folder that hazel changes the date first, then once it is changed I can move it to the other folder so that it doesn't run on the same file more than once?

Re: Rules running more than once

PostPosted: Mon Sep 14, 2020 10:09 am
by Mr_Noodle
You need to add a condition to prevent the resulting file from matching the rule again. Moving it to another folder is one way. Alternatives include adding a tag and looking for that or using a match pattern to match the renamed file.