在Mac上编写Office Outlook 2016脚本

西尔万

我想在Mac上自动化Outlook 2016

我想自动执行的任务如下:

  • 在搜索收件箱中查找上周中标题中具有特定模式的邮件
  • 准备一封新邮件,其内容是上一步中找到的所有邮件的合并内容
  • 让邮件打开(或在草稿中),让我在发送之前对其进行编辑

好吧,我只是不知道该如何处理...

  • Visual Basic(我的首选)似乎在Mac上的Outlook 2016中根本不存在!我什至找不到VB编辑器(虽然我确实是为excel找到它的)。
  • AppleScript可能允许这样做。但是我只是没有在Outlook API上找到任何文档。另外,它似乎只允许非常基本的自动化。
  • 自动化器?

请注意,我可以访问Windows计算机。因此,有可能(尽管很痛苦)在这里编写VBA脚本并将其“传输”到Mac。我没有Office 365。

谢谢你的帮助!

西尔万

史蒂夫·普尔

使用AppleScript非常有可能。这是基本示例:

tell application "Microsoft Outlook"

    set theContent to ""
    set theMessages to messages of folder "Inbox" of default account
    repeat with theMessage in theMessages
        if subject of theMessage contains "match this string" then
            set theContent to theContent & plain text content of theMessage
        end if
    end repeat

    set theMessage to make new outgoing message with properties {subject:"the subject line", plain text content:theContent}
    make new recipient with properties {email address:{address:"[email protected]", name:"Lumpkin Skinbark"}} at end of to recipients of theMessage
    open theMessage -- for further editing

end tell

如果尚未找到它,则可以通过从“文件”菜单中选择“打开字典”并选择Microsoft Outlook应用程序来打开Outlook的脚本字典。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

使用VBA的Outlook 2010脚本化规则

使用PowerShell 7编写脚本脚本Outlook

Outlook for Mac 上的 Office.js:saveAsync 方法的内部错误

您可以使用非utf8编码编写Perl 6脚本吗?

从Outlook 2016 for Mac发送短信(SMS)

Mac版Outlook 2016中Office.context.ui.messageParent是否损坏?

Office.context.mailbox.item.body.getAsync()方法在Outlook Mac 2016中不起作用

如何在TRACE32脚本的模块中的一行上放置断点?

在Windows 10上使用Nuitka将Python 3.6脚本编译为独立exe

如何在Ctrl + D输入上退出Perl 6脚本?

在GiLab CI上执行K6脚本的建议配置

在同一脚本上运行的多个 vanilla JS 轮播

Windows 上 Outlook 2013/2016 的内联问题

一种与Google Apps脚本类似的Drive / Office365脚本语言

从Excel创建Outlook约会(Office 2013和Office 2016)

Outlook 插件在 Office 2013 或 Office 2016 上不起作用

由于多个域,Outlook 2016无法连接到Office 365

Office 365,删除Outlook 2016类别

创建Outlook 2016的任务窗格Office加载项

Office365 / Outlook 2016就地存档问题

OSGi从根本上与JSR-223脚本语言发现不兼容吗?

Powershell-在目录中的所有ps1文件上运行ps1脚本

如何检查打开的文件是否保存在驱动器上-CS6脚本

如何在同一目录中的多个文件上运行此Python 2.7脚本

Outlook 2016 Windows / Mac / Web中的外接程序的新API

Mac版Outlook 2016中的粘贴和“不匹配”样式

在Mac版Outlook 2016中使用HTML签名

Office.context.mailbox.diagnostics.hostName 为 Mac 上的 Outlook 返回不正确的值

在Outlook中按日历类别编写总小时数的脚本