Hello,
I need some help with renaming a file name or rather shortening a file name.
Some file names are automatically generated from the content in my rules.
However, there are exceptions to this, which I rename in the Finder according to the following pattern:
Amazon_Rechnung_2024-08-31_Product_Barcode.pdf
The barcode always has the same structure:
Year-consecutive number-initials, e.g. _2024-0398-MC
As these invoices are invoices that I download, I only need the barcode automatically generated by Typinator for sorting into my Hazel rule.
After that, it should ideally be deleted before the file is moved to its destination.
I have already searched the forum and also read through the match patterns section in the instructions, but I can't really get any further with it.
I have also tried several variants with Replace Text, but they didn't work.
Even two friends who have been Hazel users for years have not found a solution.
What I have in mind is something similar to the A Better Finder Rename app, where I can simply shorten file names by 13 characters from the back.
How do I have to/can I do this in Hazel? I've also tried Replace Text, but that didn't work.
I am happy to receive tips
Best regards
Markus