On or near 4/3/2003 10:32 PM, Joshua Yeidel at [EMAIL PROTECTED] observed: > Thank you, Allen. You are right about the performance of "Select All" and > "delete" compared to my script. However, there is a minor complication: If > "preview pane" is open, and the message list fills (or overfills) the > message list pane, then clicking in the message list pane always cause a > message to be previewed. (Also, using the tab key to move focus to the > message pane does the same.) This is only a problem if "complex HTML" or > "network access for complex HTML" are turned on (yes, that old horse again > <grin>). > > This may sound like a small thing, but I have experienced spam floods from a > single preview with a "web bug" in it. I also have some correspondents > whose "complex HTML" I would really like to see. And I love the minimal and > consistent use of screen real estate by the preview pane. So the existing > choices are all suboptimal: > > 1) turn preview pane off, and have to manage windows for every message. > This is a really simple option, since there is a keyboard shortcut for it: Cmd-\. So it adds two more keystrokes to things:
1. Cmd-\ to turn off preview pane. 2. Shift or Command click to select all the messages to be deleted, or Cmd-A to select all. 3. Delete key. 4. Cmd-\ to turn preview pane back on. > 2) Turn "net access for complex HTML" off, and have to quit and relaunch > Entourage to view legitimate complex-HTML messages. > > 3) Risk the web bugs by previewing messages I am about to delete. > > 4) Find a way to get my "no-click" script to run faster. > > When I asked my question, I didn't realize how tangled this whole thing is. > I am _really_ looking forward to a version of Ex with a better model for > managing net access (as discussed on this list earlier). In the meantime... > my "slow applescript" question stands. > > -- Joshua > > > > On 4/3/03 2:45 PM, "Allen Watson" <[EMAIL PROTECTED]> wrote: > >> 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/>
