# How do I replicate a link to a Mail.app message without making use of drag - and also - decline?

I maintain a day-to-day journal, and also I such as to have web links to email messages, my mail customer is Mail.app on OSX. I can drag - and also - decline web links to my journal program (VoodooPad), yet I would actually favor to replicate and also paste them, so I have a link that resembles message://% 3C30533360.1931252053580. bla.bla.bla.

Exists a very easy means to get a link in this layout from Mail.app?

0
2019-05-18 21:33:00
Source Share

Based on splattne is feedback, and also this macosxhints entry, I identified just how to do it. Currently, it is simply an issue of making use of something like Quicksilver of FastScripts to bind it to a key-board faster way.

tell application "Mail"
set selectedMessages to selection
set theMessage to item 1 of selectedMessages
set messageid to message id of theMessage
-- Make URL (must use URL-encoded values for "<" and ">")
set urlText to "message://" & "%3c" & messageid & "%3e"
set the clipboard to (urlText)
end tell

0
2019-05-31 09:45:09
Source

If I appropriately analyze your inquiry, you can make use of a variant of the AppleScript in these post:

0
2019-05-21 04:47:29
Source