The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniPlan Extras (http://forums.omnigroup.com/forumdisplay.php?f=45)
-   -   change parent child task relationship with AppleScript (http://forums.omnigroup.com/showthread.php?t=13004)

cope360 2009-07-10 11:49 AM

change parent child task relationship with AppleScript
 
Hello,

I am trying to change the parent-child relationship between two existing tasks. I have seen an example for adding a new child as:

[CODE]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
[/CODE]

but I can't figure out how to do that with an existing task (assume parentTask and childTask are already set)

[CODE]tell parentTask
add childTask to child tasks ???
end tell[/CODE]

Lizard 2009-07-16 10:42 AM

[CODE]
move childTask to end of child tasks of parentTask
[/CODE]

Lizard 2009-07-16 10:51 AM

Also:
[CODE]
move childTask to after item 3 of child tasks of parentTask
[/CODE]
(before and beginning can be used in place of after and end, respectively)


All times are GMT -8. The time now is 07:03 AM.

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