Title: Re: Executing a Rule from a schedule?
Somewhere around this point it would probably be beneficial to open up the Entourage AppleScript Dictionary and take a look around - properties of 'message'. If you're asking for just read messages:

tell application "Microsoft Entourage"
    move (every message in folder "Inbox" whose read status is read) to folder "Filed"
end tell

or it could be combined with other criteria by 'and':


set thirtyDaysAgo to (current date) - (30 * days)
tell application "Microsoft Entourage"
    move (every message in folder "Inbox" whose time received is less than thirtyDaysAgo and its category contains {category "Web Order"} and read status is read) to folder "Orders"
end tell
 



--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Entourage you are using - 2001 or X. It's often impossible to answer your questions otherwise.



From: Mark Goodman <[EMAIL PROTECTED]>
Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
Date: Wed, 25 Feb 2004 10:21:22 -0600
To: Entourage mac Talk <[EMAIL PROTECTED]>
Subject: Re: Executing a Rule from a schedule?

Is there a way to only move messages that have been read?


on 2/23/04 4:52 PM, Paul Berkowitz <[EMAIL PROTECTED]> wrote:

That can be done almost literally in AppleScript:

set thirtyDaysAgo to (current date) - (30 * days)
tell application "Microsoft Entourage"
    move (every message in folder "Inbox" whose time received is less than thirtyDaysAgo and its category contains {category "Web Order"}) to folder "Orders"
end tell
 


Reply via email to