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)
-   -   Set Task to a specific date -2w (http://forums.omnigroup.com/showthread.php?t=30837)

Ludwig4004 2013-09-28 04:59 AM

Set Task to a specific date -2w
 
Hi,

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,
Ludwig

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:


[url]http://www.complexpoint.macmate.me/Site/Set_OF_due_and_start_dates_relative_to_each_other.html[/url]

(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 10:21 AM.

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