Classify or tag based on date in document

Auto tagging a document bases on a date appearing in the document.

Or More globally, getting specific information inside a repetitive document.


I’m receiving regular invoices from company XYZ. I want DT to search for this company and tag it has XYZ and when it recognize as XYZ, tag it again has the date of the invoice that I can tell DT where it appear.

In this way I can classify easily invoices by date, or by due date to pay etc…

That can be the same kind of functions has Rules inside apple mail.

See viewtopic.php?f=20&t=10246&start=0

Although that script was for automatic renaming of receipts, it might give you some ideas about automatic tagging.