• 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: How can this scale?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can this scale?


  • Subject: Re: How can this scale?
  • From: "J. Stewart" <email@hidden>
  • Date: Fri, 15 Dec 2006 04:36:22 -0500

On 12/14/06 at -0600 Robert Nicholson said this

>So whenever I throw this at a very large mailbox I get an event
>timeout error.
>
>Is it possible to do this in batches in applescript without limiting
>the number of messages in the viewer?
>
>set v to first message viewer
>set a to messages of v


with timeout of 3600 seconds -- 1 hour timeout
	set v to first message viewer
	set a to messages of v
end timeout


This will extend the time Applescript waits for a reply from the default of 1 minute to 1 hour. If you haven't returned the mailbox info in that time I'd say it's time to archive some old email  :)

To answer your original question, yes it's possible to to do it in chunks. You'd need to construct a loop that only grabs (x) number of messages at a time and keeps track of where in the list they are. Personally I'd use the extended timeout method as it's probably a bit quicker to execute.

JBS
--
Some people try to turn back their odometers. Not me, I want people to know "why" I look this way. I've traveled a long way and some of the roads weren't paved. — Will Rogers
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >How can this scale? (From: Robert Nicholson <email@hidden>)

  • Prev by Date: Re: awk question
  • Next by Date: Re: CsvToListOfText
  • Previous by thread: How can this scale?
  • Next by thread: Preserve the resource files
  • Index(es):
    • Date
    • Thread