Slightly related to my other question, 开发者_开发技巧how do I execute JavaScript from an Obj-C/C++ program on OSX? (I think JavaScript will allow me to do what I need to, even though AppleScript doesn't. According to the Photoshop documentation anyway.)
I need it to be able to interact with Photoshop.
While I really doubt using Javascript will allow you to do what you want (how is Javascript going to achieve what you need if AppleScript can't?), if you're looking to execute Javascript from Cocoa, WebKit
is probably your only option. Take a look at this tutorial, and see it will provide you with the tools you need.
精彩评论