• 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: Getting a 'repeat with' to reverse its order in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Getting a 'repeat with' to reverse its order in Mail (From: Charles Buckett <email@hidden>)

  • Prev by Date: Getting a 'repeat with' to reverse its order in Mail
  • Next by Date: Why is the Finder not recordable?
  • Previous by thread: Getting a 'repeat with' to reverse its order in Mail
  • Next by thread: Re: Getting a 'repeat with' to reverse its order in Mail
  • Index(es):
    • Date
    • Thread