[Pythonmac-SIG] appscript and mail.app, how to access attachments?

Christian Prinoth christian at prinoth.name
Fri Sep 24 11:29:13 CEST 2010


I am trying the following:

 mail=app('mail')
 msgs=mail.selection()
 msg=msgs[0]

now I would like to use
 msg.mail_attachments
but this won't work. If I ask for help, under elements I get the following:

Elements:
    AEType("attc") -- by name, index, relative, range, test, id
    bcc_recipients -- by name, index, relative, range, test
    cc_recipients -- by name, index, relative, range, test
    headers -- by name, index, relative, range, test
    recipients -- by name, index, relative, range, test
    to_recipients -- by name, index, relative, range, test

How do I access the attachments?

Thanks
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100924/11bbc441/attachment.html>


More information about the Pythonmac-SIG mailing list