Re: How can this scale?
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