Re: Help with retrieving messages from GMail account in Mail.app
Re: Help with retrieving messages from GMail account in Mail.app
- Subject: Re: Help with retrieving messages from GMail account in Mail.app
- From: Joel Esler <email@hidden>
- Date: Fri, 01 Jul 2011 01:24:42 -0400
Use a Smart folder.
On Jun 30, 2011, at 3:19 PM, John Kane wrote: Thanks, this is the recipe that I was looking for. Unfortunately, as previously commented on by Joel, this will not work for me on GMail/All Mail, I will have to rethink my approach. But this recipe does work for smaller / faster mailboxes :-)
On Thu, Jun 30, 2011 at 12:05 PM, Michelle Steiner <email@hidden> wrote:
On Jun 30, 2011, at 10:47 AM, John Kane wrote: I want to copy messages in a target date range into a folder (for further processing)
This will return all the messages in selected mailboxes that were sent in June 2011:
tell application "Mail"
tell message viewer 1
messages whose date sent is greater than date "Tuesday, May 31, 2011 11:59:59 PM" and date sent is less than date "Friday, July 1, 2011 12:00:00 AM"
end tell
end tell
You could use date received instead of date sent, if that's what you need, but the results would be the same except for messages sent in May and received in June, or sent in June and received in July.
-- Prius: Kicks Gas
_______________________________________________
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
|
_______________________________________________
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