Page 1 of 1

OCR Match Custom Date not working

PostPosted: Thu Mar 30, 2017 4:38 am
by WaraWara
Made my first PDF OCR rules and now I'm stuck with a custom date format.

Here is a screenshot of my rule I try to create: https://cl.ly/071B0Z3t2B3j
This is the custom event date I try to match: https://cl.ly/0J2I2o3a1s3l
And this is the date format in the PDF I try to match with the custom date: https://cl.ly/2v0D3H1q250A
I'm trying to get "3 Apr 2017" to be matched from my PDF.

The problem I'm having is the month part. Hazel only has a month pattern of "dec." and not "dec" without the dot. When I replace the month part with "..." (anything), it matches but not for the month part.

Anyone an idea how I can solve this?

Re: OCR Match Custom Date not working

PostPosted: Thu Mar 30, 2017 10:57 am
by Mr_Noodle
It's actually an Apple "bug". I'm guessing you are not using US English as your language/region? For some reason, Apple chose to add a period to the end of abbreviated month names for some non-US regions. To get around that, add US English to your list of languages.

Re: OCR Match Custom Date not working

PostPosted: Fri Mar 31, 2017 5:08 am
by WaraWara
Thanks it works perfectly now!