Skip to content

Instantly share code, notes, and snippets.

@Zettt
Created November 13, 2013 07:29
Show Gist options
  • Save Zettt/7445141 to your computer and use it in GitHub Desktop.
Save Zettt/7445141 to your computer and use it in GitHub Desktop.
tell application "Mail"
set _sel to get selection
set _links to {}
repeat with _msg in _sel
set _messageURL to "message://%3c" & _msg's message id & "%3e"
set end of _links to _messageURL
end repeat
set AppleScript's text item delimiters to return
set the clipboard to (_links as string)
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment