Mac上的脚本Office Outlook 2016
问题描述:
我想在Mac上自动运行Outlook 2016 。Mac上的脚本Office Outlook 2016
我想自动化的任务基本上是以下几点:从此前一周为标题
- 搜索收件箱所有 在上一步
- 发现邮件的管理内容,让邮件打开(或草案)让我编辑它之前向它发送
嗯,我只是不知道如何处理呢?
- 的Visual Basic(我的优先选择)似乎并没有被目前在所有 在Outlook 2016在Mac上!我什至不能找到VB编辑器(而我 找到它,例如Excel)。
- AppleScript可能允许这样做。但我只是在outlook API上找不到任何 文档。另外,它似乎只允许非常基本的自动化。
- Automator?
请注意,我可以访问Windows机器。所以,我可能(虽然痛苦)在那里编写VBA脚本并将其“传输”到Mac。 我没有办公室365.
感谢您的帮助!
Sylvain
答
这对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
如果你还没有找到它,你可以打开Outlook的脚本字典从文件菜单中选择“打开字典”,然后选择在Microsoft Outlook应用程序。
非常感谢@Steve!这正是我需要开始的!从你的脚本开始,我设法得到我想要做的第一个版本。 – Sylvain