The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniPlan > OmniPlan General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

applescript task grouping Thread Tools Search this Thread Display Modes

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

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?
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.

Last edited by mattao; 2006-12-04 at 05:36 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

It succeed!!!!

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
AppleScript: ML Reminder from Task eurobubba OmniFocus 1 for Mac 1 2012-11-26 04:38 AM
Applescript to change the Project of a task? Kha OmniFocus Extras 2 2011-12-19 03:10 PM
AppleScript help: Create sub-task, project from task iNik OmniFocus Extras 3 2007-12-05 09:53 AM
Applescript to cycle through task states spnyc OmniFocus 1 for Mac 4 2007-07-04 03:25 PM
AppleScript: adding a task dontlament OmniPlan General 3 2007-02-07 03:15 PM

All times are GMT -8. The time now is 12:02 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.