• 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: Michael <email@hidden>
  • Date: Wed, 2 Jan 2008 22:56:53 -0800

Michelle,

Can you figure why this is not working?

tell application "Mail"

set msgs to every message of (mailbox "INBOX" of account "comcast") whose (message id is "email@hidden") and (date sent is "Wednesday, January 2, 2008 3:22:23 PM")


--set sentDate to date sent of firstMsg (gives : "Wednesday, January 2, 2008 3:22:23 PM")

end tell


gives {}

In my Applescript book..."Ref guide" I do see that the construct "and" is supported, or, is this again Application specific? Or is there something else going on.?

Your help...and guidance..is much appreciated.
Michael.








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 (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
  • Follow-Ups:
    • Re: Dates
      • From: Axel Luttgens <email@hidden>
References: 
 >Dates (From: Michael <email@hidden>)
 >Re: Dates (From: Michelle Steiner <email@hidden>)

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