[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pythonmac-sig
Subject:    [Pythonmac-SIG] appscript and mail.app, how to access attachments?
From:       Christian Prinoth <christian () prinoth ! name>
Date:       2010-09-24 9:29:13
Message-ID: AANLkTim-Sb=uw2OPE7Y7iGyq_hxokunp9_SUdosJW1TR () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

I am trying the following:<div><br></div><div><div> \
mail=app(&#39;mail&#39;)</div></div><div> msgs=mail.selection()</div><div> \
msg=msgs[0]</div><div><br></div><div>now I would like to use</div><div> \
msg.mail_attachments</div> <div>but this won&#39;t work. If I ask for help, under \
elements I get the following:</div><div><br></div><div><div>Elements:</div><div>    \
AEType(&quot;attc&quot;) -- by name, index, relative, range, test, id</div><div>    \
bcc_recipients -- by name, index, relative, range, test</div> <div>    cc_recipients \
-- by name, index, relative, range, test</div><div>    headers -- by name, index, \
relative, range, test</div><div>    recipients -- by name, index, relative, range, \
test</div><div>    to_recipients -- by name, index, relative, range, test</div> \
<div><br></div></div><div>How do I access the \
attachments?</div><div><br></div><div>Thanks</div><div>Christian</div>



_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic