View Single Post
Quote:
Originally Posted by webalstrom View Post
whpalmer4,

That worked like a charm. Thanks for your help!

Eric
Yeah - I think the issue you had was the missing quotes - I am able to use the 12/31/99 date with no issues - see my version here:

Code:
tell application "OmniFocus"
	set dateTarget to date ("12/31/2099")
	set taskList to count of the items of the selected tree of the content of document window 1 of document 1
	set taskPtr to 1
	repeat taskList times
		set taskTmp to the value of item taskPtr of the selected tree of the content of document window 1 of document 1
		set start date of taskTmp to dateTarget
		set taskPtr to (taskPtr + 1)
	end repeat
end tell