Rules running more than once

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

Moderator: Mr_Noodle

Rules running more than once 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?
bretkennedy
 
Posts: 1
Joined: Sun Sep 13, 2020 1:05 pm

Re: Rules running more than once 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.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support