I'd like to automate Outlook 2016 on Mac.
The task I'd like to automate is basically the following:
Well, I just don't know how to handle it...
Note that I have access to a windows machine. So, it is possible (though painful) for me to write a VBA script there and "transfer it" to the Mac. I do not have Office 365.
Thanks for your help!
Sylvain
Office Scripts is turned on by default, and everyone in your organization can access and use the feature and share scripts.
Showing the Developer tab in MAC OSXOpen the relevant Microsoft Office application, be it Word, PowerPoint or Excel. Now you'll have couple options: Hit Macros… in order to access your presentation/workbook or document macros. Hit Development, to access the VBA editor.
This is very possible with AppleScript. Here's an example with the basics:
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
If you haven't found it yet, you can open Outlook's script dictionary by choosing "Open Dictionary" from the File menu and selecting the Microsoft Outlook application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With