• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding a category to an item in Entourage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a category to an item in Entourage


  • Subject: Re: Adding a category to an item in Entourage
  • From: "Rebecca O'Connell" <email@hidden>
  • Date: Fri, 12 Mar 2004 10:50:47 -0500

"theContact" in this section of my sample code should be "theItem"
-Rebecca

> if theCats does not contain c then
> set category of theItem to (category of theContact) & c
> end if

On 3/12/04 10:09 AM, "Rebecca O'Connell" <email@hidden> wrote:

> Working in MS Entourage 2001...
>
> tell application "Microsoft Entourage"
> set c to {first category whose name is "archived"}
>
> --the category needs to be a list item or else it will trigger a "can't make
> c a vector" error
>
> set theList to the selection
>
> repeat with theItem in theList
>
> --If you add a category to a contact that already has that category
> Entourage assigns the category twice, which, depending on what you do with
> the contact after that, may cause Entourage to crash and otherwise freak
> out, so its good to make sure that your script doen't do that
>
> set theCats to (category of theItem )
> if theCats does not contain c then
> set category of theItem to (category of theContact) & c
> end if
>
> end repeat
> end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Adding a category to an item in Entourage (From: "Rebecca O'Connell" <email@hidden>)

  • Prev by Date: Re: Adding a category to an item in Entourage
  • Next by Date: Re: Adding a category to an item in Entourage
  • Previous by thread: Re: Adding a category to an item in Entourage
  • Next by thread: Re: Adding a category to an item in Entourage
  • Index(es):
    • Date
    • Thread