• 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
How to get every message that meets a condition in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get every message that meets a condition in Mail


  • Subject: How to get every message that meets a condition in Mail
  • From: Christian Boyce <email@hidden>
  • Date: Mon, 3 Nov 2003 00:45:04 -0800

I am so close to figuring this out but keep failing. Can you help?

Using Mail in 10.3, I want to get every message that was sent today (and then do stuff with it).

I figured it would be something like this:


set today to date string of (current date)
--
tell application "Mail"
set themessages to every message whose date sent is today
end tell

Problem: "date sent" includes the time. I only want to compare dates. And, Mail doesn't seem to offer a way to pick off just the date (no "date string" command).

I'm sure that it's easy when you know how...

Thanks.

cb

--
Christian Boyce
Macintosh Consultant

310-452-3720
http://www.christianboyce.com

Free Mac consultations for firefighters through 12/31/2003.
Contact us for details.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Programmer's Tool scripting addition
  • Next by Date: Potential dangerous wake on lid opening
  • Previous by thread: Re: Quark 4,5 Open in OS X problem
  • Next by thread: Re: How to get every message that meets a condition in Mail
  • Index(es):
    • Date
    • Thread