从 Obj-C/C++ 运行 Javascript与 Photoshop 交互
与我的其他问题略有相关,我如何从OSX 上的 Obj-C/C++ 程序? (我认为 JavaScript 将允许我做我需要做的事情,尽管 AppleScript 不允许。无论如何,根据 Photoshop 文档。)
我需要它能够与 Photoshop 交互。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然我真的怀疑使用 Javascript 是否能让你做你想做的事(如果 AppleScript 做不到,Javascript 如何实现你所需要的?),如果你想从 Cocoa 执行 Javascript,
WebKit
可能是您唯一的选择。看一下此教程,它会为您提供所需的工具。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.