On 9/1/07 17:25, "Richard Shane, Ph.D." <[EMAIL PROTECTED]> wrote:

> Ent 2004 v 11.2.5
> OS 10.4.8
> 
> I created a recurring schedule to empty junk email from my junk email folder.
> Started to run it manually. It said it was deleting junk email. I don¹t want
> these to go to Delete folder. Is there any command that will nuke the junk
> email, not send to deleted folder?
> 
> Richard
> --
> Richard Shane, Ph.D.
> http://www.drshane.com
> 1919 14th Street, Suite 812      Boulder, Colorado 80302      303.449.0778
> 
> 

-- Nuke the Junk Mail v1.1
-- A script for Microsoft Entourage 2004
-- (will not work with vX)
-- an applescript by Barry Wainwright <mailto:[EMAIL PROTECTED]>
-- This script released under a Creative Commons Attribution, NonCommercial,
ShareAlike 2.0 England & Wales License.
-- see <http://creativecommons.org/licenses/by-nc-sa/2.0/uk/> for full
details

-- 18/10/2004 - v1.1 Finally got round to adding IMAP accounts!
-- 19/12/2003 - First version

tell application "Microsoft Entourage"
    -- Local Junk Mail
    set theMail to every message of folder id 6
    delete theMail
    delete theMail
    -- IMAP Accounts
    set IMAPaccounts to every IMAP account
    repeat with anAccount in IMAPaccounts
        try
            set theMail to every message of folder "Junk E-Mail" of
anAccount
            delete theMail
            delete theMail
        end try
    end repeat
    -- Exchange Accounts
    set exchangeAccounts to every exchange account
    repeat with anAccount in exchangeAccounts
        try
            set theMail to every message of folder "Junk E-Mail" of
anAccount
            delete theMail
            delete theMail
        end try
    end repeat
end tell



-- 
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
The Entourage User's WebLog has moved!
For hints, tips and troubleshooting go to <http://www.barryw.net/weblog/>


Reply via email to