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 Today's Posts

 
Script for a quick listing of OmniFocus statistics Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Quote:
Originally Posted by mrubenson View Post
my question now is:
How does this
relate to this
considering the latter gives an SQL error and the former doesn't
Well the former should raise an error, because "childrenCount" is ambiguous - the task and context tables both have a childrenCount field ...

(Did I ask you what version of OS X you are running ? It begins to feel as if there is a different version of Sqlite running here ...).

On the other hand, the other fields are not ambiguous, so if you can get this slightly modified version to run, you should be fine:

Code:
select \" Available actions\", count(*) 
from (task t left join context c on t.context=c.persistentIdentifier) 
where (projectInfo is null) and (t.childrenCount=0) and (dateCompleted is null) 
and (blocked=0) and (effectiveContainingProjectInfoActive=1) 
and (blockedByFutureStartDate=0) and ((context is null) 
or ((allowsNextAction=1) and (active=1)));
Anyway, I salute you for diving into the code ...

Last edited by RobTrew; 2011-03-28 at 02:15 PM.. Reason: adjusted the sqlite code
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
OmniFocus Statistics skylarkelly OmniFocus Extras 4 2012-02-29 06:44 AM
Script: listing tasks by their creation date RobTrew OmniFocus Extras 0 2011-07-26 01:29 AM
OmniFocus AppleScript for Statistics Creation (for download) digitalimago OmniFocus Extras 30 2011-01-12 02:06 PM
Help with Entourage->OF quick entry script magnum6 OmniFocus Extras 4 2007-12-14 08:50 AM
OmniFocus crash statistics Ken Case OmniFocus 1 for Mac 0 2007-07-25 03:05 PM


All times are GMT -8. The time now is 10:23 AM.


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