Checking in on applescript for new outlook

I realize this has been discussed before, but there has been some (minimal) progress on Applescript for the new Outlook and I was wondering if anybody figured out how to fetch the id of the selected message(s)? The script below still returns this error. Thanks!

error "Microsoft Outlook got an error: Can’t make missing value into type specifier." number -1700 from missing value to specifier

tell application "Microsoft Outlook"
	activate
	set selectedMessages to selection
	if selectedMessages is not {} then
		-- Process selected messages
		repeat with msg in selectedMessages
			log id of msg
		end repeat
	else
		log "No messages selected."
	end if
end tell


Nope. If you want to script Outlook you’re likely going to need to switch it to “Legacy Outlook”.

1 Like