【发布时间】:2016-12-31 23:43:26
【问题描述】:
我很少有 python 脚本与 Microsoft Outlook 2010 交互而没有任何问题。
但是在将补丁应用到 Outlook 之后,python 2.7 脚本上出现了所有这些错误(自过去 3 年以来一直运行良好)。
完整的错误是 AttributeError: '' object has no attribute 'SaveASFile'
这是代码
消息中的味精:
attachments = msg.Attachments
attachment = attachments.Item(1)
attachment.SaveASFile(os.path.join('c:\\EDIT', 'outlookAttach.txt'))
提前致谢。 -摇摆
【问题讨论】:
-
错误是 AttributeError: '
' object has no attribute 'SaveASFile'
标签: python outlook-2010