• 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: John Kane <email@hidden>
  • Date: Fri, 01 Jul 2011 10:01:45 -0600

Are smart folders scriptable? I can't find them in a mailboxes list

On Thu, Jun 30, 2011 at 11:24 PM, Joel Esler <email@hidden> wrote:
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)

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: Help with retrieving messages from GMail account in Mail.app
      • From: Joel Esler <email@hidden>
  • Prev by Date: Re: XMLLib OSAX and Filemaker Pro XML
  • Next by Date: Re: Help with retrieving messages from GMail account in Mail.app
  • Previous by thread: Re: XMLLib OSAX and Filemaker Pro XML
  • Next by thread: Re: Help with retrieving messages from GMail account in Mail.app
  • Index(es):
    • Date
    • Thread