Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevin-funderburg/38eb4b334e314f2c1d3015c7d3937600 to your computer and use it in GitHub Desktop.
Save kevin-funderburg/38eb4b334e314f2c1d3015c7d3937600 to your computer and use it in GitHub Desktop.
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