Photoshop:在 ACR / Adobe Camera RAW 的文件打开事件上运行脚本
我有一个脚本,可以对在 Photoshop 中打开的文件上的活动文档执行各种操作(当前版本为 23.x - 我保持它相对最新,以便随着时间的
推移而改变)。脚本>脚本事件管理器:“打开文档”事件。
不幸的是,当通过 ACR(Adobe Camera RAW)打开多个 RAW 文件时,“打开”事件似乎仅在所有文件都打开后触发一次 - 或者更准确地说,“打开”事件可能会触发一次每个打开的 RAW 文件,但 activeDocument 始终是最近打开的相同 RAW 文件 - 它不会循环浏览每个文件。
这意味着我的脚本仅在打开的 RAW 文件之一(当前活动的文件)上运行。我知道我可以循环访问打开的文档等,但我的问题是:
- 是否有一个脚本操作/脚本 ID 为通过 ACR 打开的每个文件触发,我可以使用而不是“打开文档”事件?
- 或者,是否有任何方法可以获取在 ACR 的特定调用中打开的文件列表?也就是说,如果我已经在 Photoshop 中打开了 2 个文档,并且通过 ACR 打开了另外 2 个文档,我是否可以获得这 2 个文档的列表(而不是必须循环浏览每个打开的文档)?
I have a script that does a variety of things to the active document on file open in Photoshop (currently on v 23.x - I keep it relatively up to date so that'll change over time)
I run this from the File > Scripts > Script Events Manager: "Open Document" event.
Unfortunately when opening multiple RAW files via ACR (Adobe Camera RAW), it seems the "Open" event is only fired once, after they have all been opened - or more accurately, it appears that the "Open" event may be firing once for each RAW opened, but the activeDocument is always the same most recently opened RAW file - it does not cycle through each file.
This means that my script only runs on one of the opened RAW files (the currently active one). I'm aware that I can do a loops through opened documents etc., but my question is:
- Is there a script action / script ID that is fired for each file that is opened via ACR that I can use instead of the "Open Document" event?
- Alternatively, is there any way to get a list of the files that were opened in a specific call from ACR? That is, if I already have 2 documents open in Photoshop, and I open another 2 via ACR, can I get a list of just that 2 (as opposed to having to loop through every open document)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论