| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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: http://lists.apple.com/mailman/options/applescript-users/email@hidden This email sent to email@hidden
| References: | |
| >Re: Problem with repeat command (From: "Mark J. Reed" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.