AthenLaw wrote:I have found that if Hazel is grabbing the wrong date (seems to be an issue specifically with scanned & OCR’d documents - ScanSnap native OCR has dates in different order than Acrobat Pro XI OCR - go figure), I try to get more specific in the match:
Rather than:
Contents contain match “Date Match”
I’ll add the language that precedes the match:
Contents contain match “Closing Date: Date Match”
I can’t figure out how to add a screen shot to this to show you exactly what I mean.
I'm having a similar issue. I too am trying to grab the "Closing Date:" of a PDF bank statement downloaded from my bank's website. The Closing Date is the first date that matches my pattern but it consistently returns the second date that matches the pattern. I tried to use "Closing Date:
Date Match, but it appears, at least for my bank statement, that the information is arranged as a table with "Closing Date:" in the first column and the date value in the second column. It seems there no way I'm able to select information in the two "columns". (I say this because, if while looking at the pdf in Preview I select the text "Closing Date:" and the date to the right of it, it also selects all the information below the text "Closing Date".)
Since it seemed to be returning the second date that match the pattern and I specified the first. I modified the condition to grab the second date and that returned the first date, the one I want. There are three dates on the bank statement that match my date pattern, they are in visual order 1) "Closing Date", 2) "Due Date", and 3) "Late Date". Hazel sees the order as 2), 1), 3). So I've got something that's working on the last 5 months of statements, but who knows if it will work next month?