On 8/17/01 10:31 AM, "George Clark" <[EMAIL PROTECTED]> wrote:

> On 8/17/01 12:28, Neil wrote:
> 
>> I used to have an Apple Script for Emailer that would delete a message and
>> remove it from the deleted messages folder.  I think it was called "shred
>> message."  I couldn't find anything like that at AppleScriptCentral.com.  I
>> did a search with the word "delete" and didn't find anything that looked
>> like this.  Is it possible in Entourage?  Thanks in advance,
> 
> Yes, you just do a "double delete"; the first one moves the message to the
> deleted messages folder, and the second one actually deletes it. Something
> like this should work, although it's not necessarily fast:
> 
>   tell application "Microsoft Entourage"
> 
>       set curMsgs to current messages
>       if curMsgs = {} then return -- no messages selected, do nothing
>       repeat with theMsg in curMsgs
>           --only do one delete if message is already in deleted items
>           if storage of theMsg is not deleted mail folder then
>               delete theMsg
>           end if
>           delete theMsg
>       end repeat
> 
>   end tell
> 
> 
This could be marginally faster, especially with lots of selected messages:

    tell application "Microsoft Entourage"

        set curMsgs to current messages
        if curMsgs = {} then return -- no messages selected, do nothing
        repeat with theMsg in curMsgs
            delete theMsg
            try -- if not already deleted from Deleted Items
                delete theMsg
            end try
        end repeat
    end tell



-- 
Paul Berkowitz


-- 
To unsubscribe:               <mailto:[EMAIL PROTECTED]>
To search the archives: 
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to