0
我有几个python脚本与Microsoft Outlook 2010交互没有任何问题。修补程序升级到win32com.gen_py.Microsoft后Python脚本无法工作Outlook 14.0
但在将修补程序应用于Outlook后,在python 2.7脚本(这些脚本在过去3年中运行良好)中获取所有这些错误之后。
完整的错误是 AttributeError的: '' 对象有没有属性 'SaveASFile'
这里是代码
用于味精消息:
attachments = msg.Attachments
attachment = attachments.Item(1)
attachment.SaveASFile(os.path.join('c:\\EDIT', 'outlookAttach.txt'))
在此先感谢。 -Sway
的错误是AttributeError的:“'对象没有属性'SaveASFile' –
Sway