The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Applescript error: reading the property list of non-inbox tasks (http://forums.omnigroup.com/showthread.php?t=6737)

RobTrew 2008-01-12 04:24 AM

Applescript error: reading the property list of non-inbox tasks
 
If the variable oTask refers to a non-inbox task,

Then the code:

[CODE]set lstProps to properties of oTask[/CODE]

generates the error message:

[B]OmniFocus got an error: Only inbox tasks have assigned containers.[/B]

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[/CODE]


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


All times are GMT -8. The time now is 12:26 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.