Set OmniFocus due and start dates relative to each other, or adjust them relative to themselves

 

A draft script which can be run directly or from LaunchBar.

(Choose the script with a Launchbar abbreviation, and tap space bar to enter a brief command.)


(Sets or defers the due dates and/or start dates of selected tasks or projects, or brings them ahead).


The due or start dates of selected tasks can be defined in relation to each other, or using relative date expressions.


SAMPLE COMMANDS

   (Multiple commands can be separated by comma or semi-colon)


DEFER OR BRING AHEAD:

    start=start+7d

    due=due-1w

    s=s-2

    d=d+3


DEFINE START OR DUE IN TERMS OF EACH OTHER:

    due=start+2w

    start=due-5d


SIMPLE RELATIVE OR ABSOLUTE SETTINGS:

    start=<sep>

    start=tomorrow

    start=today+2w

    due=now+2d


HELP

    help or ? will cause a list of sample commands to be displayed.


    (start|start date) can be abbreviated to sd, or even just s, and

    (due|due date) can be abbreviated to dd or just d.

    Multiple commands can be separated by commas or semi-colons.   


ABBREVIATIONS

    d=9/9/2011, s=d-7

    s=today+10d, d=s+2w


When the left hand of the expression is missing, it is assumed that due dates, rather than start dates, are to be set. If neither hours, days, weeks, months nor years are specified, a bare number is assumed to be a reference to a number of days).

Thus a simple:

    3

Will defer the due dates of selected tasks/projects by three days, and

    -3

will bring the due dates forward by three days.