Page 1 of 1

OCR with DEVONthink 3 (Apple Script)

PostPosted: Sun Dec 06, 2020 5:37 am
by Soc007
Hello,

For some time now, I've been looking for a way to use DEVONthink 3 via an AppleScript to convert PDF files into a searchable PDF using the built-in OCR function.
There is little to be found on the manufacturer's side and in the manual as well.
Can someone help me with an example script?

Re: OCR with DEVONthink 3 (Apple Script)

PostPosted: Sun Dec 06, 2020 4:28 pm
by EdBurke
You're aware you can right-click on a file to OCR it...right?

Am I missing something?

Re: OCR with DEVONthink 3 (Apple Script)

PostPosted: Sat Dec 12, 2020 9:26 am
by Soc007
No, i can only copy the file into the inbox from DEVONthink. And a DEVONthink Workflow can scan the inbox and run OCR.
But i search a function to do the copy into the Inbox from DEVONthink with a AppleScript inside from Hazel.

Re: OCR with DEVONthink 3 (Apple Script)

PostPosted: Sat Dec 12, 2020 10:12 am
by EdBurke
There is a folder which Is a direct link to the DEVONthink Inbox located at ~/Library/Application Support/DEVONthink 3/Inbox, Anything you drop into that folder will be moved to the DEVONthink Inbox.

The Applescript below was found on the DEVONtechnologies Community board:

Code: Select all
tell application id "DNtp"
   set thisGroup to incoming group
   import theFile to thisGroup
end tell