Hi Mr Noodle
I am having a issue with a rule duplicating files.
I have checked the rule, and also the forums to see if I could solve this. But is still causing issues that I do not understand, so hope you could help solve this with me.
If I quickly explain the workflow
I am using iOS ScanBot App to send scanned receipts file pdf ( NAME_AMOUNT ) to a ScanBot folder in iCloud.
Hazel monitoring this folder then renames with date ( DATE_NAME_AMOUNT ) and files on local drive in a specific folder / subfolder created by month.
Previously this was working all ok, as have been using the rule for a number of months, and duplicate files where not previously created, it is only occurring in the last few weeks, but I can not pin the exact date down.
The duplicated filename created is DATE_DATE_ORIIGINAL FILENAME . Where as the other file is named correctly DATE_ORIGINAL FILENAME.
After looking at the forums I added, Date added is after date last matched to the rule thinking this might stop the duplication.
What is strange is that it does not seam to be creating duplicate files in every instance.
The rule is below as well as well as the Debug Mode log file for two operations searched for under the original filename.
Thanks for Help
———————————————————
If all conditions are met
Name contains item NAME
Date added is after date last matched
———————————————————
Rename with pattern > date added ( year / month / day )_name_extension
Add tag >
Move to folder >
Sort into subfolder > Monthly_Expenses_date created ( creates a new folder every month )
———————————————————
Filename DRINK_FOOD_10.70.pdf
Log
2017-02-03 08:34:46.583 hazelworker[84669] DRINK_FOOD_10.70.pdf: Rule DRINK_FOOD matched.
2017-02-03 08:34:46.585 hazelworker[84669] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/DRINK_FOOD_10.70.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_DRINK_FOOD_10.70.pdf.
2017-02-03 08:34:46.686 hazelworker[84669] [File Event] File moved: 2017-02-03_DRINK_FOOD_10.70.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:34:46.706 hazelworker[84669] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_DRINK_FOOD_10.70.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.
2017-02-03 08:35:02.490 hazelworker[84674] 2017-02-03_DRINK_FOOD_10.70.pdf: Rule DRINK_FOOD matched.
2017-02-03 08:35:02.492 hazelworker[84674] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_DRINK_FOOD_10.70.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_2017-02-03_DRINK_FOOD_10.70.pdf.
2017-02-03 08:35:02.534 hazelworker[84674] [File Event] File moved: 2017-02-03_2017-02-03_DRINK_FOOD_10.70.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:35:02.534 hazelworker[84674] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_2017-02-03_DRINK_FOOD_10.70.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.
Filename GROCERIES_8.73.pdf
Log
2017-02-03 08:35:32.173 hazelworker[84678] GROCERIES_8.73.pdf: Rule GROCERIES matched.
2017-02-03 08:35:32.174 hazelworker[84678] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/GROCERIES_8.73.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_GROCERIES_8.73.pdf.
2017-02-03 08:35:32.232 hazelworker[84678] [File Event] File moved: 2017-02-03_GROCERIES_8.73.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:35:32.233 hazelworker[84678] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_GROCERIES_8.73.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.
2017-02-03 08:35:48.433 hazelworker[84681] 2017-02-03_GROCERIES_8.73.pdf: Rule GROCERIES matched.
2017-02-03 08:35:48.435 hazelworker[84681] [File Event] File renamed: /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_GROCERIES_8.73.pdf renamed to /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES/2017-02-03_2017-02-03_GROCERIES_8.73.pdf.
2017-02-03 08:35:48.479 hazelworker[84681] [File Event] File moved: 2017-02-03_2017-02-03_GROCERIES_8.73.pdf moved from folder /Users/IMAC/Library/Mobile Documents/iCloud~net~doo~scanbot/Documents/SB_MONTHLY EXPENSES to folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES.
2017-02-03 08:35:48.479 hazelworker[84681] [File Event] File moved into subfolder: /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES/MONTHLY_EXPENSES_February-2017/2017-02-03_2017-02-03_GROCERIES_8.73.pdf sorted from folder /Users/IMAC/Documents Local/FINANCE/MONTHLY EXPENSES to subfolder MONTHLY_EXPENSES_February-2017.
Thanks again for help