• 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: Joe <email@hidden>
  • Date: Fri, 29 Aug 2008 18:22:37 -0700

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.

Ed posted a good example for making mail. Here are a few lines of getting data from Mail.

tell application "Mail"
  set SenderAddress to content of header "From" of message 1 of mailbox "AS-Users"
  set theSubject to content of header "Subject" of message 1 of mailbox "AS-Users"
  set messageDate to date sent of message 1 of mailbox "AS-Users"
  set relativeDate to content of header "Date" of message 1 of mailbox "AS-Users"
  set messageBody to content of message 1 of mailbox "AS-Users"
 end tell

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

  • Prev by Date: Re: Get sender in Apple Mail
  • Next by Date: Re: Get sender in Apple Mail
  • Previous by thread: Re: Get sender in Apple Mail
  • Next by thread: Re: Get sender in Apple Mail
  • Index(es):
    • Date
    • Thread