Hello,

I have a project database where each project has tasks. Some of those tasks point back to a project that ha s tasks and again some of those tasks point back to Projects which have tasks. This allows me to use multiple tasks across projects and only have to update one task and all of the associated projects update.
 
What I want to do is print out all tasks from every project in this relation. So how should I handle this?

I have a printing table and a script that loops through the projects task bringing over task specifics in order.

I  tried a recursive script with global variables that have multiple fields so as the scripts call themselves the level indication increases or decreases to keep in sync with the correct project and it's tasks.
 
I read where functions can be recursive. How would I use th e function to do this?

I have done recursion  in Applescript. But the global variables don't seem to work the same way.

Any help is greatly appreciated.

Thank You,

Jason Bourque