The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Script to return a task to the inbox (http://forums.omnigroup.com/showthread.php?t=19056)

johnrover 2010-11-23 08:28 PM

Script to return a task to the inbox
 
I thought I saw this somewhere on this forum, but now I can't find it.... Did I imagine it?

whpalmer4 2010-11-23 09:20 PM

A bit of searching turned up this:

[url]http://www.sandro.org/omnifocus/index.php#reprocess[/url]

RobTrew 2010-11-23 11:22 PM

An alternative might be the following, which moves any selected task (together with its subtree) to the top of the Inbox.

[CODE]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[/CODE]

whpalmer4 2010-11-23 11:39 PM

Of course, that stray 'l' character belongs on the end of the final "end tell" statement in the script...

RobTrew 2010-11-24 03:06 AM

Thank you for spotting that :-)

(Amended above)

johnrover 2010-11-24 05:56 AM

Thanks
 
Awesome.

Thank you both very much.

johnrover 2010-11-24 06:05 AM

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

Any suggestions?

RobTrew 2010-11-24 12:55 PM

Which script are we talking about here ?
(Sandro / RobTrew)

johnrover 2010-11-24 01:18 PM

Sorry about that...

Yours Rob.

RobTrew 2010-11-24 01:43 PM

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).


All times are GMT -8. The time now is 10:44 PM.

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