View Single Post
If the variable oTask refers to a non-inbox task,

Then the code:

Code:
set lstProps to properties of oTask
generates the error message:

OmniFocus got an error: Only inbox tasks have assigned containers.

In contrast, the following works fine:

Code:
tell application "OmniFocus"
	tell front document
		set oInboxTasks to inbox tasks
		repeat with oTask in oInboxTasks
			set lstProps to properties of oTask
		end repeat
	end tell
end tell

The error raised by non inbox tasks looks like a bug ...

Last edited by RobTrew; 2008-01-12 at 04:32 AM..