Created
May 15, 2019 22:03
-
-
Save kevin-funderburg/38eb4b334e314f2c1d3015c7d3937600 to your computer and use it in GitHub Desktop.
Very useful, makes a direct link to the current message.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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