I literally just finished building a script that parses an incoming message and creates a JIRA ticket based on the content. Today I was “upgraded” to Outlook 2016 and the script is throwing an error. It seems to take issue with the “current message” term. The only solution I’ve found is to change that to “selected” but that doesn’t work either. Below is the Outlook portion of the code.
Any thoughts?
Thanks!
tell application "Microsoft Outlook"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this script." with icon 1
return
end if
repeat with theMessage in selectedMessages
-- get the information from the message, and store it in variables
set theSubject to subject of theMessage
--set theCategory to category of theMessage
set theContent to plain text content of theMessage as text
end repeat
end tell