我想在Mac上自动化Outlook 2016 。
我想自动化的任务基本上如下:
好吧,我只是不知道如何处理它......
请注意,我可以访问Windows计算机。因此,我可以(虽然痛苦)在那里编写VBA脚本并且#34;转移它#34;到了Mac。 我没有Office 365。
感谢您的帮助!
西尔
答案 0 :(得分:18)
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:"recipient@somewhere.com", name:"Lumpkin Skinbark"}} at end of to recipients of theMessage
open theMessage -- for further editing
end tell
如果您还没有找到它,可以通过从“文件”菜单中选择“打开字典”并选择Microsoft Outlook应用程序来打开Outlook的脚本字典。