Title: Re: File, forward, remove script
On or near 4/17/04 3:34 AM, Scott Haneda at [EMAIL PROTECTED] observed:

> I would like to add in 2 new features, forward the email off to a specific
> address (will be the same one all the time) then delete that forwarded
> message from the "Sent Items" folder.

The only tricky part is waiting until the message is sent before it gets deleted. This should work (untested).

tell application "Microsoft Entourage"
    set msgList to current messages
    repeat with oneMsg in msgList
        move oneMsg to folder "!!!SPAM!!!"
        set theFwd to forward oneMsg to "[EMAIL PROTECTED]"
        send theFwd
        repeat -- Keep trying to delete until successful
            try
                delay 2
                delete theFwd
                exit repeat
            end try
        end repeat
    end repeat
end tell

Reply via email to