I want to get the message id of the message currently open in outlook app during read mode in inbox on my mac using osa script.
so far I have tried this:
tell application "Microsoft Outlook"
set currentMessage to selection
set header to headers of currentMessage
end tell
And I got a response but headers do not have the message id
Mac OS Bir Sur, Apple M1 Outlook 16.46 Microsoft 365 subscription.
you should be able to:
get id of currentMessage
Works on Mojave with Outlook 16.44. (Exchange acct)
-- This works here:
tell application "Microsoft Outlook" set currentMessage to selection
set thisID to id of currentMessage
get subject of message id thisID --> "test 1"
end tell
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.