It should not take that long! Rather than trying to figure out why the script is taking so long, though, I recommend an alternate approach. Just click in the message list pane, select all (Command-A) and tap the Delete key! Much faster than any script.
On or near 4/3/2003 1:27 PM, Joshua Yeidel at [EMAIL PROTECTED] observed: > Something I do often is to delete all messages in a folder. So following > one of Allen's examples, I wrote the following: > > tell application "Microsoft Entourage" > set f to displayed feature of window 1 > set allOfEm to every message of f > repeat with aMsg in allOfEm > delete aMsg > end repeat > end tell > > [Admittedly, it's a little weak on the error-checking side.] > > I stored this as a "compiled script" (.scpt extension) and put it in the > Script Menu Items folder. > > When I execute this from the Scripts menu, it takes about 15 seconds, even > when there are only 3 or four messages in the folder. > > What causes this? What can I do to speed it up? > > TIA, > > -- Joshua > > > -- Microsoft MVP for Entourage/OE/Word (MVPs are volunteers) Allen Watson <[EMAIL PROTECTED]> Entourage FAQ site: <http://www.entourage.mvps.org/> AppleScripts for Outlook Express and Entourage: <http://members.thinkaccess.net/[EMAIL PROTECTED]/Scripts/> Entourage Help Pages: <http://www.entourage.mvps.org/> -- 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/>
