Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Very useful, makes a direct link to the current message.
use scripting additions
tell application "Mail"
set selectedMessages to selection
set theMessage to item 1 of selectedMessages
set messageid to message id of theMessage
set urlText to "message://" & "%3c" & messageid & "%3e"
set the clipboard to urlText
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.