On 6/29/02 2:55 PM, "Domains4Days.com" <[EMAIL PROTECTED]> wrote:

> Thank You Paul and Allen for your help with this.  Things are working much
> better now.
> 
> 
> ... But what about this...
> 
> === APPLESCRIPT TASK HELP ===
> 
> A Few problems:
> 
> 1- What does r/o mean? Ex: due date  date  [r/o]  -- the date the task is
> due
> 
> 
Read-only. You can't set due date of asks in Entourage 2001 (!), which means
that task scripting is effectively useless in 2001. Hurry up and upgrade to
Entourage X, where you can set due date of tasks, set and get reminders of
events, get recurrence pattern of events, and a lot more. Scripting of tasks
and events in 2001 is very poor.

> 
> 
> 2- The due date will not appear - it remains blank. What am I doing wrong?
> Even when I just type not time like "07/01/02" it re-adjusts it like
> below...

Because it's read-only. Can't be set in E2001. The only workaround is to set
the 'remind date and time' as you did, and maybe put the the date  into the
name of the task, so you can see at a glance what the real due date is:

    set theName to "test1 (07/01/02)"

The actual 'due date' will always read "No Due Date" in the Tasks list.

I'd also advise you not to have the reminder go off at midnight but to set a
real time for it. That works at least.
> 
> 
> 3- (category : a list of reference  -- the list of categories) ... Also
> doesn't work for me... I must be not creating a 'list list of categories' or
> something.

'category' property is a _list_ of categories (one or more), not strings, So
you're off on two counts.

    set theCategory to {category "Work"}

is what you're looking for. But of course all this is only useful if you're
willing to put up with tasks with no due dates.  The 'category' definition
applies everywhere, however: event, contact, messages, note, etc. So you can
use that.

(It can be a list of several categories, BTW:

    set theCategory to {category "Work", category "Play"}

You have another error below. 'priority' isn't a string (or Unicode text)
either. It's a defined constant.

So:

   set thePriority to high

not "high".
 
> 
> 
> ----------------
> 
> 
> THE CODE:
> 
> set theName to "test1"
> set theCategory to "Work"
> set thePriority to "high"
> set theContent to "test"
> set theStart to date "Tuesday, July 2, 2002 12:00:00 AM"
> 
> tell application "Microsoft Entourage"
>   activate
>   
>   set newTask to make new task with properties {name:theName,
> content:theContent, priority:thePriority, due date:theStart, remind date and
> time:theStart}
>   
>   open newTask
>   
> end tell
> 
> Thanks for your help....
> 


-- 
Paul Berkowitz


-- 
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/>

Reply via email to