【问题标题】:AppleScript to save message into eml file in Outlook 15 for MacAppleScript 将消息保存到 Outlook 15 for Mac 中的 eml 文件中
【发布时间】:2015-05-22 00:57:18
【问题描述】:

以下 AppleScript 行在 Microsoft Outlook 15 for Mac(可从 Office 365 或 Office 2016 Preview 中获得)中出现错误。它在 Outlook 2011 for Mac 中运行良好。你知道在 Outlook 15 for Mac 中保存邮件的 AppleScript 命令吗?

save theMessage in theFileName

有关此保存命令的示例用法,请参阅question中的脚本

【问题讨论】:

  • 我是否正确地假设您正试图让这个 Omnifocus 脚本工作?你有没有得到它?谢谢rainer.4950.net/2014/06/04/outlook-to-omnifocus2-take-12
  • @broderboy 是的,这就是我想要做的。让我尝试在下面测试您的建议。谢谢。
  • 酷。如果您使用 github.com/broderboy/Inbox-Zero-Macros/tree/master/mac/Alfred,我还将它封装在 Alfred 工作流程中
  • @broderboy 您更改临时文件位置的建议效果很好。不过我还在用OF1。而且,是的,随着 Outlook 16 删除了 AppleScript 支持,我切换到了 Alfred 工作流程。 :-(

标签: macos outlook applescript


【解决方案1】:

假设您正在尝试使此 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

【讨论】:

    【解决方案2】:

    尝试使用以下代码:

    save theMessage in (theFileName)
    

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

    【讨论】:

    • 不,这没有帮助。文件名是 /tmp 下的临时文件。正如我所说,这个脚本在 Outlook 2011 for Mac 上运行良好。 Outlook 15 发生了一些变化。
    猜你喜欢
    • 2017-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-27
    • 2022-01-17
    • 2011-10-05
    • 2013-01-06
    • 2014-04-29
    相关资源
    最近更新 更多