The Omni Group

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Problem with "Complete & await reply" script Thread Tools Search this Thread Display Modes
Applescript reported:
The script could not complete.
OmniFocus got an error:

Can't get context 1 of document 1 whose id = jFn5x2rjkg3". Invalid index.

It used to work well for me.
Rebuilt the database, compacted the database, to no avail.

Any suggestions?
  Reply With Quote
Hey, Clive,

The problem almost certainly has nothing to do with your database of projects and actions.

Did you perhaps rename or rearrange your contexts? The script searches for the first context with "wait" in its name. As I recall, the script requires that context to be at the top level, i.e., not nested inside another context.

(For others reading, the script in question is available from my software page.)
__________________
Cheers,

Curt
  Reply With Quote
Quote:
Originally Posted by curt.clifton View Post
The script searches for the first context with "wait" in its name. As I recall, the script requires that context to be at the top level, i.e., not nested inside another context.

(For others reading, the script in question is available from my software page.)
Aha! Exactly so! I moved it to nest with other 'waiting' type items. Moving back has fixed it.
A warning to all about such scripts!.
Thank you.
  Reply With Quote
Thanks Clive. I was having the same problem.

Curt: Is there any way to direct the script to a nested context. I need to have my "WF" (waiting for) context nested for some of my perspectives to function properly....
  Reply With Quote
I've modified the script slightly to handle this situation. Thanks to Rob Trew for posting the solution long ago!
Attached Files
File Type: zip Complete and Await Reply.applescript.zip (91.2 KB, 154 views)
  Reply With Quote
Bill, thanks for the updated script. I have a thorny problem with it, though: It works like a marvel when launched from the Applescript Editor. But when launched from the OF toolbar, it yields this:

Code:
AppleScript reported the following error:
«script» doesn’t understand the FindContext message.
Any ideas? Thanks.
  Reply With Quote
As the file has a .applescript extension, it's just the source, not a compiled version. Open it in Applescript Editor, click the Compile button, and save it as Complate and Await Reply.scpt in the OmniFocus script directory. Then reinstall it in the toolbar and you should be set.
  Reply With Quote
How ridiculous is this? I was totally unaware that Applescripts require compilation. I thought it was a language interpreted on-the-fly.

Many thanks for the enlightenment.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete and Await Reply Script - Pushes Start Date 2 Days kennedyma OmniFocus Extras 2 2011-06-17 12:57 AM
Feature request - Complete and Await Reply rfoerster OmniFocus for iPad 1 2010-08-31 12:50 AM
Growl and "Complete & Await reply" applescript Warwick OmniFocus Extras 5 2009-10-16 01:06 PM
"Complete Parent" contextual menu item Chris OmniFocus 1 for Mac 7 2008-05-12 01:27 PM
Project context menu: "Complete" vs. "Completed" vocaro OmniFocus 1 for Mac 6 2007-12-11 09:18 AM


All times are GMT -8. The time now is 04:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.