The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   Find all undated actions (http://forums.omnigroup.com/showthread.php?t=18457)

peterk 2010-10-10 11:34 AM

Find all undated actions
 
I need a way - presumably, ideally, a perspective - to find all those actions for which I have been lazy enough not to set a due date. Any ideas?
Thanks
Peter

whpalmer4 2010-10-10 12:12 PM

Context mode, group by due date, close all the groups except the one for No Due Date. A warning: if the parent of an action has a due date, the child is treated as having the parent's due date if it doesn't have its own (or it is later than the parent's).

whpalmer4 2010-10-10 12:14 PM

A bit of advice: try to avoid putting due dates on everything. It is generally best to only put due dates on actions where it really has to be done by the due date. Putting due dates on as a way to encourage you to work on this or that tends to diminish the effectiveness of the warnings.

RobTrew 2010-10-10 01:07 PM

whpalmer4's advice seems good to me - parsimony is probably a virtue in the use of dates.

If, on the other hand, you do need a clean checklist of tasks which have no due date (uncomplicated by any inheritance from enclosing action groups) you can use a saved search like:
[INDENT][I]tasks where due date is missing value[/I][/INDENT]
in [URL="http://bit.ly/OF-Find2"]Where in OF[/URL].

[COLOR="White"]--[/COLOR]

whpalmer4 2010-10-10 06:25 PM

Ah, I wasn't sure if the lack of an explicitly set due date was detectable, and didn't have time to do the relevant experiment. Good to know! But that causes me to wonder: is there any way to get Where in OF to find all the items with a due date in a range, [b]including[/b] the actions where the due date is inherited? Or do I have to use the standard OmniFocus tools for that?

RobTrew 2010-10-11 12:06 AM

That is a very good question, and does reveal a blind spot in the current range of Applescript task properties.
At the moment, you can begin, in Applescript or Where in OF, with something like:[INDENT][I]tasks where its due date < soon or (its parent task is not missing value and due date of its parent task < soon)[/I][/INDENT]
However, a task may, of course, be nested to an arbitrary depth within enclosing action groups, so this kind of query soon grows to be unwieldy, and there is, in any case, no way of directly detecting just how deeply nested a task is.

The cache does, however, track the timestamp value [I]effectiveDateDue[/I] so it might be worth putting in a request for this to be exposed by a new Applescript property [I]effective due date[/I] (analogous to [I]effectively hidden[/I] which was very helpfully added this summer).

[COLOR="White"]--[/COLOR]

RobTrew 2010-10-11 03:39 AM

[QUOTE=whpalmer4;87205]is there any way to get Where in OF to find all the items with a due date in a range, [b]including[/b] the actions where the due date is inherited? [/QUOTE]

Given that OF currently displays all matches in Project View, and (following a date-range search) will place the selection highlight on the relevant parental/ancestral action group of any task that is inheriting an effective due date, does the gap feel like a practical obstacle ?

If it does, one solution might be to re-work Where in OF so that, while the Applescript library lacks an [I]effective due date[/I] property, [URL="http://bit.ly/OF-Find2"]Where In OF[/URL] directly queries the cache for that information.

(i.e. adding a preprocessor that converts the existing AS-type queries to SQL queries, and allows for the addition of some custom properties)

(possibly verging on the baroque again here :-)

[COLOR="White"]--[/COLOR]

RobTrew 2010-10-11 04:15 AM

A PS:

There are two analogous gaps in the Applescript library:

The cache has TASK.effectiveFlagged and TASK.effectiveDateToStart

but in the absence of [COLOR="Blue"]effectively flagged[/COLOR] and [COLOR="blue"]effective start date[/COLOR] properties, we only have applescript filters like:[INDENT][I]flattened tasks where start date is missing value[/I][/INDENT]and [INDENT][I]flattened tasks where flagged is false[/I][/INDENT]
which (probably unexpectedly) include tasks which are shown by the OF GUI as effectively inheriting flagged status and/or start date.

[COLOR="White"]--[/COLOR]

whpalmer4 2010-10-11 05:43 AM

[QUOTE=RobTrew;87225]Given that OF currently displays all matches in Project View, and (following a date-range search) will place the selection highlight on the relevant parental/ancestral action group of any task that is inheriting an effective due date, does the gap feel like a practical obstacle ?
[/QUOTE]

No, not as much when considering the display behavior. I was thinking about one of the advantages of Where in OF (the ability to search in an arbitrary date range), and without consideration of the display behavior it did seem like a blind spot, but the display behavior narrows it a bit. The only exception that comes to mind is if you wanted to select all matching actions (and nothing else) for copying and pasting into some other application, cleaning up the selection could be tedious...
[QUOTE]
(possibly verging on the baroque again here :-)

[/QUOTE]
As long as there is good counterpoint... :-)

RobTrew 2010-10-11 06:41 AM

[QUOTE=whpalmer4;87229]The only exception that comes to mind is if you wanted to select all matching actions (and nothing else) for copying and pasting into some other application, cleaning up the selection could be tedious...[/QUOTE]

That's a good point.

I'll give it some thought. A simple first step might just be to quietly make Where in OF bilingual (unofficially accepting SQL queries as well as those in an Applescript idiom).

(Which reminds me of a story about Andrei Gromyko - but that's probably a little off-topic).


All times are GMT -8. The time now is 05:35 PM.

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