Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lynkynpark86

macrumors 6502
Original poster
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:
Code:
tell application "Mail"
     set messageBodyVariable to (body of (newest message))
end tell
Any ideas?
 
Yeah, I have an idea...

Try this one:

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

best
Les
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.