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.

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
>> 
>> 
>> 


-- 
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/>

Reply via email to