Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mwatts/c10c36db58d2d440d0174fd5d611aafc to your computer and use it in GitHub Desktop.
Save mwatts/c10c36db58d2d440d0174fd5d611aafc 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