AppleScript to show project in OmniFocus 2


I was wondering if there is an applescript that works with OmniFocus 2 to quickly show a project or task. I’ve looked all over the place and used a script I found on the Alfred forum, but I keep getting back the error:

error: can’t set class <> of document window id #### of document…"



I know I’ve seen a script like that, though I don’t remember where offhand.

(I don’t use that script because I use the built-in Quick Open shortcut—Command-O—to quickly show a project, context, or perspective.)