我正在尝试在 Microsoft Outlook 版本 15.6 中打开一个新消息窗口并填充包括附件在内的字段。这是我的动作脚本代码:
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"[email protected] /cdn-cgi/l/email-protection"}}
make new attachment at the end of newMessage with properties {file:"/tmp/Invoice INV2 - Paul.pdf"}
open newMessage
end tell
(此消息源自这个堆栈溢出问题 https://stackoverflow.com/questions/9521897/create-new-outgoing-message-with-applescript-in-microsoft-outlook).
但是,我收到此错误:256:398:执行错误:Microsoft Outlook 出现错误:保存更改的记录属性时出错。 (-2700)
是否可以使用 ActionScript 在最新版本的 Outlook 中打开新邮件?
我找到了解决方案:我需要在脚本前面添加以下行:
set x to "/Users/foo/file" as POSIX file
详情请参阅此页面:如何通过 AppleScript 将文件附加到 Microsoft Outlook 中的新邮件? https://stackoverflow.com/questions/32052438/how-do-i-attach-a-file-to-a-new-message-in-microsoft-outlook-via-applescript
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)