• 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: Dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dates


  • Subject: Re: Dates
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 2 Jan 2008 23:13:22 -0700

On Jan 2, 2008, at 10:15 PM, Michael wrote:

Mail got an error: Can’t get date of message id 101986 of mailbox "INBOX" of account "comcast.
Could anyone possibly explain what I am doing wrong...or where my thinking is not correct.

As previously suggested numerous times, check the dictionary.  The dictionary is your friend; it tells you what properties and elements there are.

Messages do not have a "date" property.  The do have a "date sent" and a "date received" property.

tell application "Mail"
tell item 1 of (get the selection)
display dialog "Date received:  " & (date received as text)
display dialog "Date sent:  " & (date sent as text)
end tell
end tell

--
"Democrats wrap themselves in the constitution and burn the flag while Republicans wrap themselves in the flag and burn the constitution."


 _______________________________________________
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

  • Follow-Ups:
    • Re: Dates
      • From: Michael <email@hidden>
    • Re: Dates
      • From: Michael <email@hidden>
References: 
 >Dates (From: Michael <email@hidden>)

  • Prev by Date: Dates
  • Next by Date: Re: Dates
  • Previous by thread: Dates
  • Next by thread: Re: Dates
  • Index(es):
    • Date
    • Thread