Re: Problem with repeat command
Re: Problem with repeat command
- Subject: Re: Problem with repeat command
- From: "francois.houle" <email@hidden>
- Date: Fri, 28 Oct 2005 13:54:44 -0400
- Thread-topic: Problem with repeat command
Title: Re: Problem with repeat command
Ok for the big repeat loop idea.However, how do I put it outside of the tell statements... If I put the start of the repeat loop before the tell app Entourage, it states the variable is not set. If I put it inside of that tell statement, then the end repeat has to be before the end tell for entourage.. Just not sure how to implement a repeat loop for all of this.
The reason for saving to word is because I really dislike the way it saves and looks in the text files in txt format.
On 10/28/05 9:25 AM, "Mark J. Reed" <email@hidden> wrote:
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.
_______________________________________________
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