View Single Post
I have amended the search language definitions which refer to 'soon' in the FAQ above.

Whereas they previously used the expression:
today + <num> * days
they now simply use the variable name:
soon
Which can be defined in Applescript with code like:
Code:
tell application id "com.omnigroup.omnifocus"
	tell default document
		set soon to (current date) + ((value of setting id "DueSoonInterval") as integer)
	end tell
end tell
[I have also added the keyword 'soon' to the search language recognized by my Where in OF script. The expression 'today + <num> * days' can also be used in Where in OF searches and shortcuts, and is resolved by a dialog asking the user to enter a number for <num>]

(Note that 'soon' is the current moment + N * 24 hours, which I understand to be the calculation used by OF, whereas the 'today' in today + <num> * days uses a base time of "00:00" this morning, rather than the time of the search.)

Last edited by RobTrew; 2012-07-17 at 07:22 AM..