开发者

Run Javascript from Obj-C/C++ that interacts with Photoshop

开发者 https://www.devze.com 2023-01-16 07:18 出处:网络
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 does

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消