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

Help with retrieving messages from GMail account in Mail.app


  • Subject: Help with retrieving messages from GMail account in Mail.app
  • From: John Kane <email@hidden>
  • Date: Wed, 29 Jun 2011 21:19:40 -0600

I am a complete AppleScript noob here (though I have plenty of programming / scripting experience)

I want to walk through my GMail account in Mail.app. I, unfortunately, want to iterate through all of the messages in All Mail (of GMail) looking for messages that match a specific set of criteria.

Here is where my noob-ness shows. What I have so far is:

tell application "Mail"
    tell account "Gmail"
        tell mailbox "[Gmail]/All Mail"
            set allMessages to every message
        end tell
    end tell
end tell

This "works", but it of course times out (I have >250,000 messages here). The timeout is on the "set allMessages ..." statement.

Is there some way to do this without creating a list of all messages?

Any other approach that can work?

An IRC channel?

Thanks in advance!
 _______________________________________________
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: List View Options
  • Next by Date: file path problem
  • Previous by thread: Re: problem with do shell script
  • Next by thread: Re: Help with retrieving messages from GMail account in Mail.app
  • Index(es):
    • Date
    • Thread