Re: Problem with repeat command
Re: Problem with repeat command
- Subject: Re: Problem with repeat command
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 28 Oct 2005 09:25:54 -0400
Okay, you're looping through the list of messages once, setting
variables that you don't do anything with, and then looping through the
list of messages again later and expecting the variables to reappear
when you happen to be in the same point in the loop. That's not
going to work.
Imagine that you're holding a book, a pad of paper, and a pencil,
and someone is standing next to you calling out page numbers from a
list. Every time they say a number, you flip to that page and
write down the first word on the top sheet of the pad. Then you
tear off that sheet, crumple it up, and throw it away before they call
out the next page number.
When they've gone through all the page numbers, they take the book
away. Then they go back to the top of their list and call out the
page numbers again, expecting you to read off the word that you wrote
down above. But you can't, because you threw away all the paper;
and even if you dig through the trash you have no way of knowing which
word goes with which page number.
That's, essentially, what your script is doing. The book is your
email, the list of page numbers is the currently selected set of
messages, and the pad of paper is supposed to be the resulting Word
documents.
It's not a hard script to fix: you can either do one big loop that
talks to both applications inside of it, or save the information from
the first loop somewhere that the second loop can get to it. But
what is the problem that you're trying to solve? If you just want
to save all your Entourage messages as individual text files, you don't
have to go through Word to do it.
--
Mark J. Reed <
email@hidden>
_______________________________________________
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