Re: Query for Paul or anyone about Entourage Categories
Re: Query for Paul or anyone about Entourage Categories
- Subject: Re: Query for Paul or anyone about Entourage Categories
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 11 Jan 2002 20:27:14 -0800
On 1/11/02 6:50 PM, "Matthew Smith" <email@hidden> wrote:
>
on 12/01/2002 12:38, Jesse Shanks at email@hidden wrote:
>
>
> I have a script that allows me to create a New Task in Entourage from any
>
> application using the Script Menu in OS X. Everything is good in setting the
>
> new task properties except category. I can get a list of the categories in
>
> my Entourage, but have diddled around and cannot get it to accept my
>
> category however I attempt to choose it and send it in the property record.
>
>
>
> Once I get a list of my categories and make a choose from list, what
>
> identifier or reference will Entourage understand to assign a category to a
>
> new task?
>
>
This works for me:
>
>
tell application "Microsoft Entourage"
>
make new task with properties ,
>
{name:"Test", category:{category "Personal"}}
>
end tell
>
>
A category is an object. The category property of a task is a list of
>
categories.
Correct. So you can set categories of an existing task similarly
set category of task "Test" to {category "Personal", category "Work"}
Because 'category' is both the name of a class (element of the application)
and also a property (a list of categories) of various other Entourage
classes (task, message, event, etc.), AppleScript can get confused in
certain situations. (They should have called the property 'category list'.)
in whose clauses, use 'where its' instead;
set theTasks to every task where its category contains {category
"Personal"}
And there's a bug in Entourage 2001 so you can't do that (filter on
category) for contacts. It's fixed in Entourage X.
--
Paul Berkowitz