We’ll be getting in touch with OmniGroup to ask them for a feature that would make their existing linking more useful, and provide benefit to Hook users. Currently, when you active an OmniFocus:// link, OmniFocus modifies the frontmost window.
What OmniFocus really should do is a quick look up to find a window that currently exposes the target task or project. If OmniFocus can find the target, it should bring it to the foreground.
That would be particularly helpful for power users (like myself) who often have many windows open, each on its own perspective. (I often have over 20 OmniFocus window open.) I’ve been using Hook internally at CogSci Apps for over two years and been wanting this from OmniGroup from the beginning, but had not asked them. Will do.
Anyone who agrees with my proposal could start a thread with OmniGroup or request the same of them.
NB: the above is not exactly what you asked for. But I think it achieves something similar. There may be a way to achieve what I describe with OmniFocus’s scripting API, but it would be slower than if OmniGroup implemented it in in OmniFocus in Objective-C, which is what I think they should do.