Watching folder and OCR with FineReader Pro

Hi,
I have tried to implement a workflow in Hazel where I watch a folder and OCR the content.
I have tried to modify the AppleScript using this script from Katie Floyd:
http://katiefloyd.me/blog/automatically ... and-pdfpen
The Hazel rule is as following watching the download folder:
If all extensions is pdf
Color label is not blue
Then Run AppleScript
Set color label to blue
At first the script opens FineReader and starts to OCR the pdfs, but the I get AppleScript failed message.
Can anyone help?
I have tried to implement a workflow in Hazel where I watch a folder and OCR the content.
I have tried to modify the AppleScript using this script from Katie Floyd:
http://katiefloyd.me/blog/automatically ... and-pdfpen
- Code: Select all
tell application "FineReader"
open theFile as alias
tell document 1
ocr
repeat
delay 1
end repeat
delay 1
close with saving
end tell
tell application "FineReader"
quit
end tell
end tell
The Hazel rule is as following watching the download folder:
If all extensions is pdf
Color label is not blue
Then Run AppleScript
Set color label to blue
At first the script opens FineReader and starts to OCR the pdfs, but the I get AppleScript failed message.
Can anyone help?