Skip to content

Instantly share code, notes, and snippets.

@alexandregz
Created February 27, 2014 11:51
Show Gist options
  • Save alexandregz/9248715 to your computer and use it in GitHub Desktop.
Save alexandregz/9248715 to your computer and use it in GitHub Desktop.
returns content (and subject) from mail selected (Mail.App)
tell application "Mail"
set theSelection to selection
set theMessage to item 1 of theSelection
content of theMessage
end tell
tell application "Mail"
set theSelection to selection
set theMessage to item 1 of theSelection
subject of theMessage
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment