Re: Getting a 'repeat with' to reverse its order in Mail
Re: Getting a 'repeat with' to reverse its order in Mail
- Subject: Re: Getting a 'repeat with' to reverse its order in Mail
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 22 Jun 2005 18:48:50 -0700
- Thread-topic: Getting a 'repeat with' to reverse its order in Mail
On 6/22/05 6:32 PM, "Charles Buckett" <email@hidden> wrote:
> The messages are traversed from the most recent to the oldest message
> of the mailbox. But, I need the data to come as oldest to newest. I
> know I could do it with a loop counter, but that's messy compared to
> the simply elegant 'repeat with.'
Says who? You mean you're trying to save typing a few words? Big deal. Get
it right.
set allMsgs to (every message of theMailcrate)
repeat with i from (count allMsgs) to 1 by -1
set theMsg to item i of allMsgs
There's nothing messy there.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden