I have created an intelligent rule in DT3 that monitors the general input.
If PDFs with a Tag “NeedOCR” are imported there, OCR starts and exports the files to a directory on my Mac.
This works well if I start the import in the Finder with the right mouse button under Services.
Now I have installed the following AppleScript in Hazel, which automates this transfer to DT3:
tell application id "DNtp"
set thisGroup to get record at "/Inbox"
import theFile to thisGroup
end tell
The import runs correctly so far. The Tag is also set and with the intelligent rule I also see that there is a 1 there.
However, the rule is not executed automatically.
The import command imports all files in the directory, but the perform command for the smart rule only for one file in the inbox.
have already tried repeat and other things.
but unfortunately can’t do it.
how can I call up the smart rule and it processes the entire inbox?
Unfortunately, that didn’t work either.
As before, I import two documents via script and the rule is still only executed for the first document.
The other document remains in the inbox.