Skip to content

Instantly share code, notes, and snippets.

@benoitsan
Last active May 22, 2024 20:35
Show Gist options
  • 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