Skip to content

Instantly share code, notes, and snippets.

@gbertb
Created September 18, 2013 07:21
Show Gist options
  • Save gbertb/6605651 to your computer and use it in GitHub Desktop.
Save gbertb/6605651 to your computer and use it in GitHub Desktop.
copy message urls in apple mail
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