Page 1 of 1

OCR with PDFPenPro and Applescript

PostPosted: Fri Oct 18, 2013 10:58 am
by evenprimes
This is a very slight correction from AppleSuperlatives' post on "Determine if a PDF needs to be OCR'd & Automate FineReader" at http://www.noodlesoft.com/forums/viewtopic.php?f=3&t=905

The sample code is slightly off, here's the correct (tested!) script:

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


I'm making this a new topic since the original title wasn't obvious that it helped with PDFPenPro. All credit goes to AppleSuperlatives.

Re: OCR with PDFPenPro and Applescript

PostPosted: Wed Nov 06, 2013 4:25 pm
by Bryan
One modification that may be needed. If you are using the latest version of PDFPenPro, you have to refer to it as "PDFPenPro 6"

Bryan

Re: OCR with PDFPenPro and Applescript

PostPosted: Thu Nov 07, 2013 8:54 am
by Cassady
Many thanks for this - bookmarked!

Re: OCR with PDFPenPro and Applescript

PostPosted: Fri Oct 24, 2014 3:58 am
by joy9393
If you are using the latest version of PDFPenPro, you have to refer to it as "PDFPenPro 6"