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

repeat loops on Eudora messages


  • Subject: repeat loops on Eudora messages
  • From: Doug McNutt <email@hidden>
  • Date: Fri, 31 Oct 2003 08:50:58 -0700

At 15:02 -0600 10/26/03, Christopher Stone wrote, in re another topic:
>At 11:26 -0700 10/26/03, Doug McNutt wrought:
>>I doubt that Eudora actually moves anything on disk when move to the end of current mailbox is specified.
>
>You'd be mistaken about that. Try moving one message to the end of a mailbox and then looking at the mailbox in a text editor.

Chris is right and that explains why a loop like this takes forever in a big mailbox:

set thebox to mailbox of messages -- returns a reference
-- other stuff
repeat
try
set thesender to field "From:" of message 1
write thesender & return to OUTPUT
on error
exit repeat
end try
move message 1 to end of thebox
end repeat

John Delacour introduced us to this method for looping through selected messages but for the simple concept of extracting a line from each message it does in fact make a copy of the messages at the end of the mailbox and causes a doubling of size with a bunch of copies, presumably no longer indexed, at the beginning.

Is there another way to deselect message 1 in order to go to the next message in a loop? Is there a way to create a list of messageID's in a mailbox; in a selection? Is there a way to loop through all messages in a mailbox, selected or not? Is there anything like a message index sequentially assigned with no gaps?

"id of messages as list" fails. The plural form - messages - behaves just like "message 1" or `message ""`.

--

--> Halloween == Oct 31 == Dec 25 == Christmas <--
_______________________________________________
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.

  • Follow-Ups:
    • Re: repeat loops on Eudora messages
      • From: Rob Jorgensen <email@hidden>
References: 
 >Re: Eudora AppleScript Question... (Doug McNutt) (From: David Crowe <email@hidden>)
 >Re: Eudora AppleScript Question... (From: Doug McNutt <email@hidden>)
 >Re: Eudora AppleScript Question... (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Script Editor won't stay quit
  • Next by Date: Creating a line in Illustrator
  • Previous by thread: Re: Eudora AppleScript Question...
  • Next by thread: Re: repeat loops on Eudora messages
  • Index(es):
    • Date
    • Thread