AppleScript 将消息保存到 Outlook 15 中的 eml 文件中 Mac

AppleScript to save message into eml file in Outlook 15 for Mac

以下 AppleScript 行在 Mac 的 Microsoft Outlook 15 中出现错误(可从 Office 365 或 Office 2016 预览版获得)。它在 Mac 的 Outlook 2011 中运行良好。您知道在 Mac 的 Outlook 15 中保存消息的 AppleScript 命令吗?

save theMessage in theFileName

此保存命令的示例用法,请参考此question

中的脚本

尝试改用以下代码:

save theMessage in (theFileName)

您为保存命令指定了什么文件名?

假设您正在尝试使此 Outlook 到 Omnifocus 脚本正常工作,http://rainer.4950.net/2014/06/04/outlook-to-omnifocus2-take-12/

将保存位置更改为 Outlook 内部。我认为这与沙盒有关

set theFileName to "/Users/tbroder/Library/Containers/com.microsoft.Outlook/Data/Documents/OutlookMsg" & theID & ".eml"

这对我适用于 Apple Store 版本的 OmniFocus