Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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