On 11/3/05 12:23 am, "Beth Rosengard" <[EMAIL PROTECTED]> wrote:

> On 3/10/05 10:38 AM, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:
> 
>>> Is there a way to Select All in an Entourage 2004 folder without first
>>> opening a message ... other than by turning off the Preview Pane?
>> 
>> Nope. I've requested it often. It's so convenient that you can "Mark All as
>> Read" or press its shortcut without clicking on a message, just a folder,
>> and annoying that you can't select all (or delete all, the main reason I
>> usually have for selecting all in the Junk folder).
> 
> Same for me too.
>  
>> It can be done by script, of course, and a shortcut to it:
>> 
>> 
>> tell application "Microsoft Entourage"
>>     activate
>>     try
>>         set selectedFolder to displayed feature of main window
>>         if {class of selectedFolder} is not in {folder, news group} then
>> error number -128
>>     on error
>>         beep
>>         return
>>     end try
>>     set selection to (get every message in selectedFolder)
>> end tell
> 
> This is great.  Much appreciated
> 
> Now can this script be made to run another script, namely Barry's (I think)
> delete messages script which I'm calling Nuke Messages?
> 
> Thanks again.
> 
> Beth
> 

If all you want to do is delete the messages then there is no need to select
them at all:

    delete messages of selectedFolder

Will work fine in the context above.

Or, if you want to _really_ delete them:

    set theMessages to messages of selectedFolder
    delete theMessages
    delete theMessages

-- 
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
        <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/>

Reply via email to