In one of my workflows I copy email messages (EMLs) via AppleScript to DEVONthink, but the move doesn’t trigger the “On Import” trigger of subsequent Smart Rules. The “Every Minute” trigger works better. Is this a good substitute – or can i use something less intrusive?
PS: Here the AppleScript which copies the EML:
try
tell application id "DNtp"
set theRecord to import "${tmpfile}" from "MailMate" name "${name}"
set modification date of theRecord to creation date of theRecord
set the URL of theRecord to "${url}"
display notification "Added message \"${name}\" to DEVONthink" with title "MailMate"
end tell
on error errMsg number eNum
tell application "System Events"
activate
display alert "DEVONThink: " & eNum message errMsg
end tell
end try