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

Code:
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
		
		strList
	end tell
end tell