Importing attachments from emails

Is it possible to script the import of attachments from emails? Ideally, I would want to be able to select one or more emails that have been imported to DTPO, and run a script to put their attachments in a group that I’m prompted to specify - or the global inbox if no group is selected.

That’s not supported by DEVONthink Pro Office but might be possible by scripting Apple Mail (as long as the messages are still available over there).

Doh. :cry:

Select all of the email messages of interest in Mail. Click File > Save Attachments… Every attachment from every message is saved to the destination chosen.

Why is this so easy, when I wanted to take the hard way?