Hello,
I use in several Hazel rules the possibility to execute an AppleScript. I find it very comfortable to chose an "external“ AppleScript. So, if I have to change something, it's enough to change only the external AppleScript once.
It's possible to to transfer this modus operandi to other tokens like the "Contents > contain match“-Token?
Example: When I have different bank account cards, one for business and one for private, then the scanned receipts show either the card number like „XXXXX0972" for business or „XXXX7990“ for private. Now I can match the content respectively the end of the number for rename, move and tagging the .pdf in different way (private vs. business). So far so good, but the card number change every 3 years when I receive a new card. I have about 50-60 rules with such match-token that I have to change respectively adapt in certain cases, and it’s a little bit a nightmare when I have to change all these tokens by hand…
I suggest that the problem could be solved with Applescript, but I’am not saddle-fast in AppleScript.