File matched but not processed...

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

File matched but not processed... Thu Feb 21, 2019 12:50 pm • by IVG
So I have a rule set up that all PDF files that don't have an appendix "-OCR" must be run through with OCR engine of PDFPen. the script looks like this:
Image

the script that it runs is:

Code: Select all
tell application "PDFpen"
   open theFile as alias
   tell document 1
      ocr
      repeat while performing ocr
         delay 1
      end repeat
      delay 1
      close with saving
   end tell
   quit
end tell


the rule status shows that it matched... see:

Image

so for example when i check if my test file matches the rules - it shows that it does... see
Image

but when I see it via the debug log it says:

2019-02-21 12:41:57.045 hazelworker[14514] DEBUG: Screen Shot 2019-02-21 at 11.44.18 AM.png.pdf: Did not match any rules.

while at the same time the rule status menu shows that it matched the file with the rule... see
Image

and the file is not processed... I have no idea why... please help!!!!
IVG
 
Posts: 18
Joined: Tue Jan 22, 2019 5:00 pm

Re: File matched but not processed... Fri Feb 22, 2019 12:11 pm • by Mr_Noodle
I'm wondering if Spotlight is lagging behind so that the Kind classification is, for a brief period, different. Try using "extension" instead of "Kind" and see if the results are any different.
Mr_Noodle
Site Admin
 
Posts: 11240
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron