Integrating AppleScript and Cocoa
Subject:   How about tutorial on IAC???
Date:   2003-05-13 07:36:34
From:   anonymous2
There is a wealth of information on how to make *your* cocoa application scriptable, but precious little (any???) on how to call the available methods of other scriptable applications.

I would love to know how to send commands to a scriptable application (ie Photoshop) from cocoa, and receive back a result.

Alas, the command line app osascript does not pass or return variables.