• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get sender in Apple Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Get sender in Apple Mail (From: Joe <email@hidden>)

  • Prev by Date: Re: Get sender in Apple Mail
  • Next by Date: Re: Help with simple grep
  • Previous by thread: Re: Get sender in Apple Mail
  • Next by thread: Re. Help with simple grep - Thanks
  • Index(es):
    • Date
    • Thread