I set up a simple rule to make that happen. It works very well.
Just set up a new rule (via Tools) and set up the following 2
conditions, executing "if all criteria are met"
If "any recipient" "is not in address book"
and "is not junk mail"
Then
"add sender to address book"
click the Enable box and unclick the "do not apply other rules" box
You'e done.
That puts everyone who sends you a message into your Address Book, including
the hundreds of spammers who send you messages you don't want. It guarantees
that new messages from the spammers (or from people sending you unsolicited
email, whatever you call them) will never be marked as junk. That's not what
Moira asked for.
Instead, make an Outgoing Rule (Tools/Rules/Outgoing Rules):
IF
Any To Recipient [or Any Recipient] Is not in Address Book
THEN
Run AppleScript <Script>
Save the following script in Script Editor to the Entourage Script Menu
Items folder, and navigate to it by clicking the <Script> button above.
---------------------Add Recipient to Address Book-----------------------
tell application "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
set addressRecords to address of every recipient of theMsg whose
recipient type is to recipient
repeat with addressRecord in addressRecords
set dName to display name of addressRecord as Unicode text
set eAddress to address of addressRecord
set foundContacts to find eAddress
if foundContacts = {} then
if dName ‚ "" then
set AppleScript's text item delimiters to {" "}
set lName to last text item of dName
try
set fName to (text items 1 thru -2 of dName) as Unicode
text
on error
set fName to ""
end try
else
set {fName, lName} to {"", ""}
end if
set AppleScript's text item delimiters to {""}
make new contact with properties {first name:fName, last
name:lName, email address:eAddress}
end if
end repeat
end tell
----------------------------------
If you want to include CC recipients, remove from 'whose' i nthe third line.
Change it to:
set addressRecords to address of every recipient of theMsg
--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <
http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <
http://macscripter.net/scriptbuilders/>
Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.
PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.