Re: Get sender in Apple Mail
Re: Get sender in Apple Mail
- Subject: Re: Get sender in Apple Mail
- From: Peter Baxter <email@hidden>
- Date: Sat, 30 Aug 2008 20:29:30 +1000
Hi Joe,
I often find setting the properties in outgoing mail can be hard. The
script I offer has some aspects incomplete so that you can see how to
add other items to the email. You need to select an email, but not
open it first for this script to work.
tell application "Mail"
set the msg to item 1 of (get the selection)
set theSubject to "Re: " & the subject of msg
set theBody to "The Body"
set theName to the sender of msg
set theAddress to ""
set newMessage to make new outgoing message with properties
{subject:theSubject, content:theBody & return & return}
tell newMessage
set visible to true
make new to recipient at end of to recipients with properties
{name:theName, address:theAddress}
end tell
end tell
On 30/08/2008, at 11:47 AM, Joe wrote:
At 1:06 AM +0100 8/30/08, Martin wrote:
Yes, I've already looked for examples using "sender". I can't find
anything close.
Look at "Create New Message.scpt" in the Scripts folder I mentioned.
Close to the end starting at the "tell application "Mail"" line.
Forgot to add that part.
Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden