AppleScriptKit and -objectSpecifier
If a Cocoa application links to some framework, e.g. Automator, that in turn brings in AppleScriptKit.framework, it can have nasty effects on the scriptability of an application.
In particular, AppleScriptKit defines its own category methods for “objectSpecifier” on a number of standard classes such as NSWindow.