The Omni Group Forums

The Omni Group Forums (
-   OmniFocus 1 for Mac (
-   -   Set Task to a specific date -2w (

Ludwig4004 2013-09-28 04:59 AM

Set Task to a specific date -2w

I have been looking through the web and this forum, but I couldn't find the answer to a functionality I am looking for.

I would like to be able to set a date for a task with the following parameters:

Example: Start: 8/31/2014 -2w
The idea is, that I usually have a deadline and I want to trigger the task a week or two before.

I appreciate any comment or help,

RobTrew 2013-09-28 05:22 AM

One approach would be to script the assignment of a Start Date to N days before any Due Date which the selected task may have.

[CODE]property pDaysBefore : 14

tell application id "OFOC"

tell front document window of default document
tell content
set lstTask to value of selected trees where class of its value is task or class of its value is inbox task
repeat with oTask in lstTask
tell oTask
set dteDue to due date
if dteDue is not missing value then
set start date to (dteDue - (days * pDaysBefore))
end if
end tell
end repeat
end tell
end tell
end tell[/CODE]

Jay6821 2013-09-29 05:29 AM

Thanks Rob, this is useful!

Ludwig4004 2013-09-29 10:31 PM

Thank you for your quick answer.

RobTrew 2013-09-29 11:45 PM

More generally, it might also be worth looking at this script:


(Haven't tested the download recently, but I think it should still be working. Let me know if not)

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

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