Using the AppleScript below I am unable to open the message ID. This same message ID is in a note in my Reminders app and clicking on the link works correctly there.
set emailID to "message://<DB43DAF1-7B87-4DE5-99DB-EC11CB0F6FF7@gmail.com>" tell application "Mail" open location emailID end tell
I get the pop-up error
The operation couldn't be completed.
(MCMailErrorDomain error 1030.)
Mail was unable to open the URL "(null)".
I've researched that error code but the answers don't seem applicable. Also, when removing the word "location" from my AppleScript, Mail will open but with a blank new email.
Any help getting this script to actually open the email with that ID would be greatly appreciated.