PDA

View Full Version : Mail applescript?




lynkynpark86
Apr 9, 2011, 08:14 PM
I'm trying to make a script that gets the newest message in Mail, and sets the message's body to a variable. Something like:

tell application "Mail"
set messageBodyVariable to (body of (newest message))
end tell

Any ideas?



ccamelot
Apr 9, 2011, 10:39 PM
Try this one:

tell application "Mail"
set latestMessage to content of first message of inbox
end tell

best
Les