Title: Category of Event via apple script
I am trying to get a list of entourage events – ultimately to export to Excel and do client billing. However, I am unable to get the category of the event. I don’t know if it’s my inexperience (incompetence) with Apple Script, or an Entourage problem.  

Here is an excerpt of the script I am playing with:

tell application "Microsoft Entourage" to set xxx to every event ¬
    
whose start time is greater than date "Wednesday, November 1, 2000 12:00:00 AM"

repeat with eachEvent in xxx
    
tell application "Microsoft Entourage"
        
display dialog category (category of eachEvent)
    
end tell
end repeat

This produces an error “can’t make category {category id 9} into a string” 9 is the correct category, but I can’t seem to get hold of either the 9 or the category's text.  Realizing that each event’s category is a list of categories, substituting
  display dialog name of item 1 of category of eachevent
I get a similar error “cant get name of category of event id 114 into a string”

How can I get the text of the category, or even the subscript (category id)?

Thanks.


-----------------------
Bob Greenblatt
[EMAIL PROTECTED]



-----------------------
Bob Greenblatt
[EMAIL PROTECTED]


Reply via email to