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

Getting a 'repeat with' to reverse its order in Mail


  • Subject: Getting a 'repeat with' to reverse its order in Mail
  • From: Charles Buckett <email@hidden>
  • Date: Wed, 22 Jun 2005 18:32:02 -0700

If I use the construction:

tell application "Mail"
  set theMailcrate to mailbox "AS-Users"
  repeat with aMessage in (every message of theMailcrate)
  get some data from each message and do something with it
  end repeat
end tell

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.' I tried using 'the reverse of' in various places without any luck.

Is there any way to reverse the direction of 'repeat with'?

(my Buckett's got a hole in it).
Charlie
_______________________________________________
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


  • Follow-Ups:
    • Re: Getting a 'repeat with' to reverse its order in Mail
      • From: deivy petrescu <email@hidden>
    • Re: Getting a 'repeat with' to reverse its order in Mail
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: How to Restart remote 10.3.9 computer with Applescript
  • Next by Date: Re: Getting a 'repeat with' to reverse its order in Mail
  • Previous by thread: Re: How to Restart remote 10.3.9 computer with Applescript
  • Next by thread: Re: Getting a 'repeat with' to reverse its order in Mail
  • Index(es):
    • Date
    • Thread