View Single Post
To visit all the actions in the Inbox, (iterating only through the leaves, and skipping their parent group nodes, if there is any indentation), you could write, for example, something like:

Code:
tell application id "OFOC"
	tell default document
		set lstInboxLeaves to flattened tasks where in inbox is true and number of tasks = 0
		repeat with oTask in lstInboxLeaves
			set strName to name of oTask
		end repeat
	end tell
end tell