Title: Re: making entourage better
On or near 8/15/04 7:18 PM, Frederico at [EMAIL PROTECTED] observed:

> On 04/08/15 11:44 AM, "Beth Rosengard" <[EMAIL PROTECTED]> wrote:
>
>>> And you want to know what else really makes me mad as hell? Why is there no
>>> 'Delete this immediately' command?
>>
>> It would be nice to have this command available from within Entourage, but
>> you can have it now via AppleScript.  Look for the Nuke Messages script at
>> this URL:  <http://www.avernus.com/~phil/OEStuff.html>.  It's towards the
>> bottom.
>
> Thanks for the tip; unfortunately, it really doesn't resolve the problem of
> time to complete, which was my primary complaint; in fact, it actually slows
> the process down substantially, as it still has to do what one does manually
> via AppleScript:
>
>  on ProcessMsg(theMsg)
>     tell application "Microsoft Entourage"
>         move theMsg to deleted mail folder
>         delete theMsg
>     end tell
>  end ProcessMsg
>
> What this script does is excellent for a single, or even a handful of
> messages, but for more than, say, a hundred or so, it is a step backwards (
> unless I can plan to go to lunch or otherwise occupy myself after executing
> the script on 5k messages).
>
For Entourage 2004, the script needs to be updated, since operations can now be performed on entire lists of messages, not just one at a time:

-- To immediately delete without user intervention, remove the red lines
tell application "Microsoft Entourage"
    set msgs to current messages
    set c to count msgs
    display dialog "Totally delete " & c & " messages?" buttons {"No", "Yes"} default button "Yes"
    if button returned of result is "Yes" then
 
      delete msgs
        delete msgs
   end if
end tell

Reply via email to