View Single Post
A more idiomatic (and efficient) way of doing your filtering might be:

Code:
tell document 1 of it
      set lstOPTasks to (every task whose outline depth is 1)
end tell