Page 1 of 1

Hazel claims rule does not match – appears to be in error

PostPosted: Fri Nov 22, 2019 8:23 pm
by eikelben
I have OCR'd scans and natively-generated pdfs with clearly selectable text. Both spotlight and Alfred (Inside Files) are able to locate the pdfs based on the text "account ending in 1234", however Hazel claims "Rule does not match" to the argument [Contents] [Contains] [account ending in 1234]. When I click the red error icon, I can clearly see that it does indeed match. Any help would be greatly appreciated.

Re: Hazel claims rule does not match – appears to be in erro

PostPosted: Mon Nov 25, 2019 1:05 pm
by Mr_Noodle
If you search for the text in Spotlight with quotes around it, does your file show up in the results? Hazel is looking for an exact phrase match so searching for the terms as individual words may not show up the same.

Also, have you tried "Contents contain match"?

Re: Hazel claims rule does not match – appears to be in erro

PostPosted: Mon Nov 25, 2019 5:40 pm
by eikelben
My results were inconsistent – some documents would match, others would not (the text was clearly evident in the OCR layer of the PDFs). Because of that I switched all of the rules over to Contents Contain Match and am now getting accurate results.