View Single Post
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
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