Last active
August 20, 2024 15:34
-
-
Save benoitsan/6278485 to your computer and use it in GitHub Desktop.
Export to Devonthink from Prizmo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 "DNtp" to launch | |
try | |
set thePath to theItem as text | |
tell application id "DNtp" | |
set theRecord to import thePath to incoming group | |
end tell | |
end try | |
end repeat | |
end if | |
end run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 "DNtp" to launch | |
try | |
set thePath to theItem as text | |
tell application id "DNtp" | |
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