View Single Post
You would need, I think, to replace modification date with completion date in the following line:

Code:
set refHistory to a reference to (flattened tasks where (in inbox = false and its modification date > dteHistory))