roedert
Aktives Mitglied
- Dabei seit
- 05.01.2011
- Beiträge
- 12.151
- Reaktionspunkte
- 3.317
Das hilft dir nicht? https://blog.devontechnologies.com/2010/07/tuesday-tip-import-with-ocr-via-drag-and-drop/
oder hier das originale frisch von meiner Platte
oder hier das originale frisch von meiner Platte
Code:
-- DEVONthink - Import, OCR & Delete.applescript
-- Created by Christian Grunenberg on Fri Jun 18 2010.
-- Copyright (c) 2010-2017. All rights reserved.
on adding folder items to this_folder after receiving added_items
try
if (count of added_items) is greater than 0 then
tell application id "DNtp" to «constant rmdara24»
repeat with theItem in added_items
set thePath to theItem as text
if thePath does not end with ".download:" and thePath does not end with ".crdownload:" then
set lastFileSize to 0
set currentFileSize to 1
repeat while lastFileSize ≠ currentFileSize
delay 0.5
set lastFileSize to currentFileSize
set currentFileSize to size of (info for theItem)
end repeat
try
tell application id "DNtp"
set theRecord to ocr file thePath to incoming group
if exists theRecord then tell application "Finder" to delete theItem
end tell
end try
end if
end repeat
end if
end try
end adding folder items to