views:

49

answers:

1

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.

A: 

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.

itaiferber
The Photoshop scripting documentation actually explicitly states that they support VBS, JavaScript, and AppleScript. But the Action Manager API (the only one I really NEED :P) says that it is not supported in AppleScript, but it doesn't say why...
Miquella