How to get every message that meets a condition in Mail
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.