View Single Post
I've edited it slightly (above).

Might be worth trying again.

(I assume that you have selected some tasks in the right hand panel when you run the script).