OCR with DEVONthink 3 (Apple Script)

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

OCR with DEVONthink 3 (Apple Script) 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?
Soc007
 
Posts: 7
Joined: Sat Nov 28, 2020 3:31 pm

Re: OCR with DEVONthink 3 (Apple Script) 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?
EdBurke
 
Posts: 28
Joined: Wed Apr 18, 2012 6:58 am

Re: OCR with DEVONthink 3 (Apple Script) 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.
Soc007
 
Posts: 7
Joined: Sat Nov 28, 2020 3:31 pm

Re: OCR with DEVONthink 3 (Apple Script) 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
EdBurke
 
Posts: 28
Joined: Wed Apr 18, 2012 6:58 am


Return to Support