This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Script for DEVONthink 3 | |
-- Run OCRmyPDF on PDFs without OCR | |
-- Requires https://github.com/jbarlow83/OCRmyPDF to be installed e.g. with brew | |
on performSmartRule(theRecords) | |
tell application id "DNtp" | |
set strExportPath to "PATH=/usr/local/bin:$PATH " | |
set intRecordsCount to count of theRecords | |
show progress indicator "Adding OCR to PDF..." steps intRecordsCount | |
repeat with theRecord in theRecords |