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

Script to return a task to the inbox Thread Tools Search this Thread Display Modes
I thought I saw this somewhere on this forum, but now I can't find it.... Did I imagine it?
An alternative might be the following, which moves any selected task (together with its subtree) to the top of the Inbox.

tell application id "com.omnigroup.omnifocus"
	set oDoc to front document
	tell oDoc
		set refInbox to inbox tasks
		tell front document window
			set lstTasks to value of selected trees of content
			repeat with oTask in lstTasks
				move oTask to before beginning of refInbox
			end repeat
		end tell
	end tell
end tell

Last edited by RobTrew; 2010-11-24 at 01:42 PM.. Reason: Moved trailling "l" back into the code :-) thanks to whpalmer4 for pointing it out.
Of course, that stray 'l' character belongs on the end of the final "end tell" statement in the script...
Thank you for spotting that :-)

(Amended above)
Hrm... The Omifocus window blinks, but nothing happens. When run from the applescript editor, the editor returns "missing value".

Any suggestions?
Which script are we talking about here ?
(Sandro / RobTrew)
I've edited it slightly (above).

Might be worth trying again.

(I assume that you have selected some tasks in the right hand panel when you run the script).

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Return key and Inbox Daniel Wessel Applying OmniFocus 9 2012-05-23 12:05 PM
Don't want Return to create projects in Inbox Craig OmniFocus 1 for Mac 2 2007-12-14 09:38 AM
script to set window to inbox? Craig OmniFocus Extras 5 2007-09-19 12:14 AM
Return to inbox anna OmniFocus 1 for Mac 9 2007-09-11 01:50 PM
Shift + Return to enter task above current SpiralOcean OmniFocus 1 for Mac 0 2007-07-08 12:36 PM

All times are GMT -8. The time now is 12:18 AM.

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