On 4/17/04 5:15 PM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:

> I want a rule that says if message is from (mailing list) and subject
> contains OS X or message Body contains OS X then alert me.

Entourage can't do combined AND and branching OR in one rule. So you have to
make two rules:


1)      match if ALL criteria are met

If
    message is from (mailing list)
    subject contains "OS X"
Then
    Alert me


2)       match if ALL criteria are met

If
    message is from (mailing list)
    message body contains "OS X"
Then
    Alert me



Unfortunately, you can't make one rule which runs a script

           match if ALL criteria are met

If
    message is from (mailing list)
 
because "alert me" is not scriptable in some of the usual ways
(notification, bouncing dock). However a script could display a dialog, and
either bring Entourage to the front or let the dialog bounce the Entourage
icon icon in the dock for you; or else it could say something to you:


3)            match if ALL criteria are met

If
    message is from (mailing list)

Then
        Run AppleScript <Alert OS X>


Here's Alert OS X script:


tell application "Microsoft Entourage"
    set theMsg to item 1 of (get current messages)
    set {theSubject, theBody} to theMsg's {subject, content}
    if theSubject contains "OS X" or theBody contains "OS X" then
        display dialog "OS X message just received"
        -- open theMsg
        -- say "OS X message just received"
        --activate
    end if
end tell


Remove any of the "--" to make its line operable.

-- 
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.




-- 
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.


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

Reply via email to