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
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 05:32 AM..
 
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
 
 


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 01:46 AM
Reading list joedom Applying OmniFocus 4 2010-11-27 06: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 09:44 AM
Applescript Help: getting a list of tasks tweir OmniPlan General 3 2007-01-10 03:33 PM


All times are GMT -8. The time now is 01:28 AM.


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