On or near 2/19/01 8:06 PM, Rick Zeman at [EMAIL PROTECTED] observed:

> From AppleScript, what's the proper syntax for changing the label of a
> category of an item.  Say I have a mail item with the label of "None" and I
> want to change it to, say, "Friends" which is already defined in the
> Categories listing.

>From an October, 2000 message by Paul Berkowitz:

> Select one or more messages in the message pane or run the script from a
> Rule. This version will add the category you want and make it the prime
> category. 
> 
> tell application "Microsoft Entourage"
>   set currMsgs to current messages
>   repeat withtheMsg in currMsgs
>       set theCategories to category of theMsg
>       set category of theMsg to {category "NameHere"} & theCategories
>   end repeat 
> end tell
> 
> Just put the real name where you see :NameHere". If you want to replace any
> other category it may have just with the new one, do this:
> 
> tell application "Microsoft Entourage"
>   set currMsgs to current messages
>   repeat withtheMsg in currMsgs
>       set category of theMsg to {category "NameHere"}
>   end repeat 
> end tell

Thanks to John Carlsen's archive for rapidly finding this for us.
-- 
Peace,
Allen Watson <[EMAIL PROTECTED]> XNS name: =Allen Watson
A Mac family since 1984 <http://home.earthlink.net/~allenwatson/>
Applescripts for Outlook Express and Entourage:
<http://homepage.mac.com/allenwatson/>


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

Reply via email to