PDA

View Full Version : Applescript error: reading the property list of non-inbox tasks


RobTrew
2008-01-12, 04:24 AM
If the variable oTask refers to a non-inbox task,

Then the 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:

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 ...

ptone
2008-01-13, 11:33 PM
I agree, it would be nice to get the properties in a single event in a record.

Would reduce the AE overhead of my current project considerably.

-P