Get the URL of the selected message in Mail.app


I just wrote this little AppleScript to get the URL of the selected message in Mail.app. Once it gets the URL, it adds it to the system clipboard so you can paste it elsewhere (like, say, in OmniFocus or Evernote).

Anyway, I figured maybe one or two of you might find this useful. Or not. Whatever.