Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 9, 2011, 08:14 PM   #1
lynkynpark86
macrumors 6502
 
Join Date: Mar 2010
Location: Maine, USA, Earth, Solar System, Milky Way, Universe
Mail applescript?

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?
__________________
White MacBook, 2.13 GHz, 2 GB RAM, 160 GB HD
Dell w/ 4GB RAM, AMD Athlon
iPod Touch 4G (or 5G :P), 32GB, iOS 5.1, awaiting jailbreak.
lynkynpark86 is offline   0 Reply With Quote
Old Apr 9, 2011, 10:39 PM   #2
ccamelot
macrumors member
 
Join Date: Feb 2010
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
ccamelot is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Handling Duplicate AppleScripts the Otter Mac Programming 1 Dec 22, 2010 05:53 AM
AppleScript Application fivetoadsloth OS X 0 Nov 15, 2010 06:35 PM
Mail Applescript for Voice Navigation AzureCloud Mac Programming 0 Dec 16, 2009 12:37 AM
Mail Applescript error moose151 Mac Programming 3 Oct 24, 2009 11:28 AM
Mac Mail AppleScript ISSUE newmacker Mac Programming 1 Oct 3, 2008 02:54 PM


All times are GMT -5. The time now is 05:12 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC