PDA

View Full Version : applescript task grouping


mattao
2006-12-01, 12:41 PM
Hi,

I can't succeed to assign a task to a group using applescript. Does anyone can help?

Thanks

Lizard
2006-12-03, 09:06 PM
First, a caveat: AppleScript support for OmniPlan is incomplete in RC1. We have chosen to defer those bugs in favor of fixing some serious bugs.

Secondly, please clarify your question: What do you mean by 'assign'? Are you assigning these tasks to a group of resources so that the people in that group will work on the task? Or do you mean simply organizing tasks into a group of tasks, an outline structure?

mattao
2006-12-04, 04:32 PM
First of all, thanks a lot Lizard for your answers.

I am trying to do this

1) create the "draw floor plans" task -> it succeed
2) create the "draw first floor" task -> it succeed
3) create the "draw second floor" task it succeed

4) make the "draw floor plans" task to a group task -> it succeed
I used "set task type of task "draw floor plans" to group task

5) put the "draw second... and third floor" tasks in the "draw floor plans" group I've just created.

I can't succeed into this.

I tried to use the "parent task" properties but it is a r/o ( right only ) property.

So what should I do?

The underlying goal of my scripts is to record what I am currently doing inside a omniplan. I used timelog. It's cool but not enough form me.
I think some applescript could do a great job related to omniplan.

Lizard
2006-12-05, 09:37 PM
You need to tell the parent task to make the child tasks. Like so:

set parentTask to make task with properties {name:"draw floor plans"}
tell parentTask
make task with properties {name:"draw first floor"}
make task with properties {name:"draw second floor"}
end tell

mattao
2006-12-07, 02:01 PM
Thanks

It succeed!!!!

I will Try to improve my script. I will tell you the results.

Bye.