Skip to content

Instantly share code, notes, and snippets.

View y4code's full-sized avatar
😎
Being dalao

y4code y4code

😎
Being dalao
View GitHub Profile
@y4code
y4code / DT3 - Add OCR to PDF.scpt
Created March 1, 2023 22:49 — forked from julienma/DT3 - Add OCR to PDF.scpt
OCR PDFs in DEVONthink 3 with jbarlow83/OCRmyPDF
-- 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