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?
|
A bit of searching turned up this:
[url]http://www.sandro.org/omnifocus/index.php#reprocess[/url] |
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] |
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) |
Thanks
Awesome.
Thank you both very much. |
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) |
Sorry about that...
Yours Rob. |
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 05:28 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.