Skip to content

Instantly share code, notes, and snippets.

@benoitsan
Last active April 19, 2023 22:37
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save benoitsan/6278485 to your computer and use it in GitHub Desktop.
Save benoitsan/6278485 to your computer and use it in GitHub Desktop.
Export to Devonthink from Prizmo
-- Export to Devonthink without extra OCR within Devonthink (Script written by Benjamin Zeiss)
on run argv
if (count of argv) is greater than 0 then
repeat with theItem in argv
tell application id "com.devon-technologies.thinkpro2" to launch
try
set thePath to theItem as text
tell application id "com.devon-technologies.thinkpro2"
set theRecord to import thePath to incoming group
end tell
end try
end repeat
end if
end run
-- Export to Devonthink with OCR within Devonthink using the Finereader engine (Script written by Benjamin Zeiss)
on run argv
if (count of argv) is greater than 0 then
repeat with theItem in argv
tell application id "com.devon-technologies.thinkpro2" to launch
try
set thePath to theItem as text
tell application id "com.devon-technologies.thinkpro2"
set theRecord to ocr file thePath to incoming group
end tell
end try
end repeat
end if
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment