Apple mail plugin vs AppleScript missing feature

Hi,

So what i have observed:
I have both AppleMail plugin from Devonthink and the AppleMail Script available for use. Both work as intended. However the plugin is not automatic meaning you either click the menu item or press the combination of keys, vs the AppleMail script and be driven by a rule to run as soon as new item appears in the mailbox.

However, the AppleMail plugin actually creates tags based on the setting in devonthink for hashtags to tags, vs AppleScript that does not do this.

So, i belive the plugin is treating the mail the same way as you would drop into the global inbox in finder and devonthink picks up on the hashtags. Applescript is more of a copy and paste type of setup into the application bypasing the proper import method.

So my thinking is that i find an applescript to save the email to the global inbox in finder that way the tagging works as expected.

Unless anyone knows of a different way to get tagging to work from hashtags?

That begs the question which version of macOS and DT you’re using. The plug-in stopped working after macOS Ventura, due to changes Apple introduced in its Mail framework.

So, there’s little point in discussing the benefits of a deprecated plug-in over something else – only this “something” else will be available eventually.

Also, it’s not clear (to me), which “AppleMail Script” you’re referring to. I looked in my DT script menu and didn’t see anything in the “Import” section. Anything in your global script menu? But what…

And then there’s the “Import mail” function in the left sidebar of DT. Did you try that one?

MacOS version is ventura using DT 3.9.8 Server Edition

any AppleScript here:

I find the AppleScript when using mail rules to alocate an applescript.

Import mail function in the left sidebar of DT looks again to be a manual process, correct me if im wrong.

There is no automatic email import method. Apple Mail rules are the closest thing. And no, the script is not copying and pasting emails.

Well, at least Add messages to DEVONthink contains this line

perform smart rule trigger import event record theRecord

which triggers all smart rules connected to an import trigger for this record. It might thus be possible to write a smart rule with an import trigger that does what you want. There is, for example, the “Tags” action …