View Single Post
Hrm; Keyboard Maestro does seem to have a few differences. I'm not sure how they could arrange that unless they are building their own AppleEvents w/o using Apple's compiler.

They have the right codes though (misc/actv), but the Cocoa scripting support seems to want the 'null' they dropped out of the 'event data'. It might work if I stopped specifying a 'direct-parameter' in my sdef, but then 'activate quick entry' wouldn't work.

Could you try this to see if this is even the right track:

- Quit OmniFocus and Keyboard Maestro
- Use Finder's context menu to "Show Package Contents" on OmniFocus
- Navigate to Contents/Resources and open OmniFocus.sdef in your favorite text editor

Look for:

Code:
		<command name="activate" code="miscactv" description="Activates the application or window.">
			<direct-parameter type="specifier" description="the object(s) to activate."/>
		</command>
and replace it with:

Code:
		<command name="activate" code="miscactv" description="Activates the application or window."/>
Note the '/>' at the end of this line instead of just '>'.

Then relaunch and try your script.

Even if this does fix the problem in Keyboard Maestro, it will break scripting Quick Entry...
__________________
CTO, The Omni Group