The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Applescript error: reading the property list of non-inbox tasks Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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 ...

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I test a property value in Applescript? Simon Knight OmniGraffle Extras 6 2012-03-16 12:46 AM
Reading list joedom Applying OmniFocus 4 2010-11-27 05:13 AM
AppleScript: Transfer tasks from THL (The Hit List) to OmniFocus eatmytag OmniFocus Extras 7 2009-11-01 01:59 AM
Applescript access to tasks in inbox dmcg OmniFocus Extras 2 2009-01-09 08:44 AM
Applescript Help: getting a list of tasks tweir OmniPlan General 3 2007-01-10 02:33 PM

All times are GMT -8. The time now is 02:21 PM.

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