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

Default Time for Start Date Thread Tools Search this Thread Display Modes
Originally Posted by RobTrew View Post
In the meanwhile, if you want to check that there are no midnight starts, you can do a search and replace with applescript.
Or maybe there are new ways to change default start time?
Something like this, for example:

-- Find and replace start dates
-- Edit properties below (integers in range 0 - 24 for hours, 0 - 60 for minutes)

property pFindHours : 0
property pFindMins : 0

property pReplaceHours : 6 -- Desired start (hours)
property pReplaceMins : 0 -- Desired start (mins)

on run
	tell application id "com.omnigroup.omnifocus"
		tell default document
			set lstTasks to (flattened tasks where start date is not missing value)
			set lngChanges to 0
			repeat with i from 1 to length of lstTasks
				set dteStart to start date of item i of lstTasks
				tell dteStart
					if (its hours = pFindHours and its minutes = pFindMins) then
						set {its hours, its minutes} to {pReplaceHours, pReplaceMins}
						set start date of item i of lstTasks to dteStart
						set lngChanges to lngChanges + 1
					end if
				end tell
			end repeat
		end tell
	end tell
	display dialog (lngChanges as string) & " start dates changed from  " & PadNum(pFindHours, 2) & ":" & PadNum(pFindMins, 2) & 
		" to " & PadNum(pReplaceHours, 2) & ":" & PadNum(pReplaceMins, 2) with title "Find & Replace Start Time"
end run

on PadNum(lngNum, lngDigits)
	set strNum to lngNum as string
	set lngGap to (lngDigits - (length of strNum))
	repeat while lngGap > 0
		set strNum to "0" & strNum
		set lngGap to lngGap - 1
	end repeat
end PadNum
Could anyone kindly provide me with an instruction on how to adjust the start time using this script?
  1. Cut and paste the code to Applescript Editor,
  2. Edit the hour and minutes values of the find and replace properties at the top of the script,
  3. Click the Applescript Editor run button.
Thank you so much.
Yet there are no ways to change default start time?
That is correct, there is currently no way to specify the default start date. Use Help->Send Feedback to make a feature request with enough requests, perhaps we'll see it someday.
I had the same issue and created a simple snippet with TextExpander for Start Times.

For example, when something starts today, on the keyboard I type in ",td" and this will fill in the word "Today" for the start date.

As it relates to this thread, for a start day of tomorrow, I created a snippet where when I type in ",tm" it types in "Tomorrow 6AM", thus not needed a script. If you aren't a keyboard person, then the script may serve you better.

Same applies on my iPad and iPhone since TextExpander also syncs to my iOS devices.

Brilliantly! Just started using TextExpander yesterday)
Thank you very much for sharing! Will definitely buy it for iPhone now.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
start date default time suddenly different flyingdesigner OmniFocus 1 for Mac 0 2013-02-16 11:18 AM
Set default time for start dates? raxtor OmniFocus 1 for Mac 2 2012-11-05 07:28 AM
Making Start Date, Due Date, Estimate Default jessicatmt OmniFocus 1 for Mac 1 2012-08-06 02:23 PM
Default start time Olf OmniFocus 1 for Mac 1 2012-05-22 08:39 AM
Can Default Start Time be Changed pgrayu2 OmniFocus 1 for Mac 5 2012-04-18 09:26 AM

All times are GMT -8. The time now is 02:45 PM.

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