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 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Set Task to a specific date -2w Thread Tools Search this Thread Display Modes
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
 
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
 
Thanks Rob, this is useful!
 
Thank you for your quick answer.
 
More generally, it might also be worth looking at this script:


http://www.complexpoint.macmate.me/S...ach_other.html

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -8. The time now is 01:14 AM.


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