• 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: Help with retrieving messages from GMail account in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with retrieving messages from GMail account in Mail.app


  • Subject: Re: Help with retrieving messages from GMail account in Mail.app
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 30 Jun 2011 11:05:28 -0700

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

  • Follow-Ups:
    • Re: Help with retrieving messages from GMail account in Mail.app
      • From: John Kane <email@hidden>
References: 
 >Help with retrieving messages from GMail account in Mail.app (From: John Kane <email@hidden>)
 >Re: Help with retrieving messages from GMail account in Mail.app (From: Joel Esler <email@hidden>)
 >Re: Help with retrieving messages from GMail account in Mail.app (From: John Kane <email@hidden>)

  • Prev by Date: Re: Help with retrieving messages from GMail account in Mail.app
  • Next by Date: PostBox and AppleScript
  • Previous by thread: Re: Help with retrieving messages from GMail account in Mail.app
  • Next by thread: Re: Help with retrieving messages from GMail account in Mail.app
  • Index(es):
    • Date
    • Thread