• 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: repeat loops on Eudora messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: repeat loops on Eudora messages


  • Subject: Re: repeat loops on Eudora messages
  • From: Rob Jorgensen <email@hidden>
  • Date: Fri, 31 Oct 2003 16:53:19 -0500

At 5:49 PM +0000 10/31/03, Charles Arthur wrote:
On Fri, 31 Oct 2003 12:04:34 -0500, Rob Jorgensen <email@hidden> wrote:


JD's method is the only way that I know of to work with selected
messages. This will allow you to loop through a mailbox (selected
messages have no impact on this).

tell application "Eudora"
tell mailbox "In" of mail folder ""
set count_ to number of messages
repeat with i from 1 to count_
-- do something to/with message i
end repeat
end tell
end tell

Just a small point, but if that "do something to/with message i" includes
moving it to another mailbox, then you'd be better doing the repeat loop as

repeat with i from count_ to 1 by -1

so that you don't finargle up the count of messages in the mailbox, as it
won't be checking the number once you're in the repeat loop there.

I concur, and I'm surprised that I haven't been bitten by this. Thanks, Charles.

-- Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: repeat loops on Eudora messages (From: Charles Arthur <email@hidden>)

  • Prev by Date: Startup mounting is currently not supported for this log on method
  • Next by Date: [OT] Two apps out, one app in in Panther
  • Previous by thread: Re: repeat loops on Eudora messages
  • Next by thread: Need jump start on listing contents of folders
  • Index(es):
    • Date
    • Thread