Probably so. It's easy enough, if you are creating a new contact that will
have no existing categories. Adding on categories gets a little more
complex.
If you have used "Add sender to Address Book" in your rule, the contact
should already exist. The script then needs to find that contact and change
its category:
tell application "microsoft Entourage"
set theMsg to item 1 of (get current messages)
set theSender to sender of theMsg
set theContact to find theSender
set the category of theContact to category "Best Friend"
-- Or whatever category you want to use; must exist
end tell
That should do it.
On or near 2/17/2003 5:22 PM, Norman W. Ferguson at [EMAIL PROTECTED]
observed:
> Greetings,
>
> What I'd like to do is scan a folder full of e-mails, check to see if the
> sender of each e-mail is not in the address book, then add the sender to the
> address book -and- set the category of the newly created contact.
>
> I'm fairly certain I've figured out how to do all but the last item. I don't
> see any way to do that with a Rule. Does this mean my first foray into
> AppleScript for Entourage?
>
> Open nets...
--
Microsoft MVP for Entourage/OE/Word (MVPs are volunteers)
Allen Watson <[EMAIL PROTECTED]> Entourage FAQ site:
<http://www.entourage.mvps.org/>
AppleScripts for Outlook Express and Entourage:
<http:[EMAIL PROTECTED]/Scripts/>
Entourage Help Pages: <http://www.entourage.mvps.org/>
--
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/>