Currently, I use Hazel and an AppleScript from Katie Floyd to OCR documents in PDFPenPro. My goal is to do this in KM instead.
I want to set up a macro that invokes a similar script for each selected finder file.
I believe I need to create a macro that uses “For Each Path in Finder Selection” and then execute the AppleScript.
I cannot figure out how to modify the script to work in this context. Katie’s script is below. I assume I need to replace “theFile” with a KM variable?
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 tell application "PDFpenPro" quit end tell end tell
(Pardon this noob question. I am totally new to AppleScript, let alone invoking it from KM. I have tried searching around, but have been unable to figure out how do do this.)