More options for handling duplicates
Posted: Sun Nov 28, 2021 7:34 pm
I would like to know if (or how) it's possible to do more custom things when a duplicate is detected at the time of Hazel moving a file into a folder or sorting into a subfolder. At the moment, I have a rule which renames PDF's to "Payslip - YYYYMMDD" pattern according to attributes in the file and then move and sort into a subfolder based on the year. Ordinarily, I'd set the rule to discard duplicates which have the same name, however there are occasions where there are 2 x payslips with the same date attributes (and would therefore receive the same filename from the rule I have made), but are in fact a different supplementary payslip which I also want to keep. This means I don't want to discard the "duplicate" (which seems to be determined just by name), but to rename it using the option in Hazel.
Are there more sophisticated options available for what to do with the file if it's considered a "duplicate" when moved or sorted into a subfolder? What would be nice if there was a way of checking other metadata about the 2 files to determine if it's really a duplicate file (in which case, discard), or if it just happens to have the same name (in which case rename to something I choose such as "Payslip - YYYYMMDD (Supplementary)" rather than just append a numeric increment like "-1". I realise that I can probably handle a custom rename in the destination folder with it's own rule (and would have to create one for every subfolder), but not sure how to do the compare with original file?
Is there a better way to do this at the time of moving the orginal file? If not, maybe a feature suggestion to add more options for handling file duplicates - determining if duplicate based on certain parameters (not just name?) and allow running more rules based on that (eg: rename again, flag or move/sort again).
Also - I've always wondered what's the difference between:
If file exists:
...?
Thanks
Are there more sophisticated options available for what to do with the file if it's considered a "duplicate" when moved or sorted into a subfolder? What would be nice if there was a way of checking other metadata about the 2 files to determine if it's really a duplicate file (in which case, discard), or if it just happens to have the same name (in which case rename to something I choose such as "Payslip - YYYYMMDD (Supplementary)" rather than just append a numeric increment like "-1". I realise that I can probably handle a custom rename in the destination folder with it's own rule (and would have to create one for every subfolder), but not sure how to do the compare with original file?
Is there a better way to do this at the time of moving the orginal file? If not, maybe a feature suggestion to add more options for handling file duplicates - determining if duplicate based on certain parameters (not just name?) and allow running more rules based on that (eg: rename again, flag or move/sort again).
Also - I've always wondered what's the difference between:
If file exists:
- ( ) rename the file
( ) replace the existing file
( ) throw the file away
...?
Thanks