View Single Post
FWIW if you just want a textual list of the items, you can get it directly without a loop.

property pPrefix : "- "

tell application id "OFOC"
	tell default document
		set {dlm, my text item delimiters} to {my text item delimiters, linefeed & pPrefix}
		set strList to pPrefix & (name of flattened tasks where in inbox is true and number of tasks = 0) as string
		set my text item delimiters to dlm
	end tell
end tell