On 24/2/04 1:40 am, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:
> Barry's script uses a 'whose' clause to generate the list of messages, but > then moves them one by one. That will still be slower than mine, but by not so > much. Allen's, which generates the list by repeat loops, then tries to move > the whole list at once, would make up some of the time if only Entourage could > move a pre-existing AppleScript list of messages. But Entourage X > unfortunately can't do that, so don't try it at home. I'd better not say more > at this point...;-) I originally wrote the script to move them all at once, similar to yours, but then I remembered the limitation of not being able to move lists in some versions of entourage, so I played safe by putting the loop in there. To answer Joshua�s question about �style�, there is no right & wrong way to write a script (assuming that each way works!). Style does come into it � it is hard to follow the logic of some one-line scripts, and breaking things into two or three commands can make things easier. I like to use properties for some variables, because they are defined at the start of the script and can easily be edited by the user � you could easily change my script to look for messages over 20 days, for example, or change the category to be looked for... Now, having said that, some things obviously make a script run more slowly. Try to avoid looping through lots of messages (or other items) doing mathematical comparisons, or calls to external applescript commands (OSAXEN). Using the �whose� clause can speed things up dramatically when used like Paul & I did, but not all applications support whose clauses � it needs to be built in to the application. Fortunately, with entourage it is :) -- Barry -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
