Created
February 27, 2014 11:51
-
-
Save alexandregz/9248715 to your computer and use it in GitHub Desktop.
returns content (and subject) from mail selected (Mail.App)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Mail" | |
set theSelection to selection | |
set theMessage to item 1 of theSelection | |
content of theMessage | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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