Extendscript Toolkit 2 无法定位 Illustrator CS3

发布于 2024-09-28 19:46:41 字数 362 浏览 10 评论 0原文

我通常为 Illustrator 编写脚本并将它们保存在脚本文件夹中。然后在开发过程中,我使用警报来运行它们进行调试,但这变得很乏味,所以我想我应该尝试一下 Extendscript Toolkit 2 IDE,这样我就可以使用控制台进行日志记录。

我过去曾经使用过它,但现在不能使用它。主窗口的左上角有一个下拉菜单,其中应该包含启用了 Extendscript 的所有应用程序,但 Illustrator(和 Photoshop)不在列表中,因此我无法运行脚本来自 Extendscript 并让他们针对我在 Illustrator 中打开的文档。有人知道为什么以及如何解决吗?

我没有屏住呼吸,似乎没有多少人使用 Extendscript Toolkit。

I usually write scripts for Illustrator and save them in the scripts folder. Then during development I run them using alerts for debugging but this is getting tedious so I thought I would give the Extendscript Toolkit 2 IDE a go so I could use the console for logging.

I've used it in the past a little bit however I can't use it now. In the top left corner of the main window there is a dropdown menu which should have all the apps which are Extendscript enabled but Illustrator (and photoshop) aren't in the list so I can't run scripts from Extendscript and have them target my open documents in Illustrator. Anyone know why and how to sort it out?

I'm not holding my breath, not many people seem to use Extendscript Toolkit.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌辣 2024-10-05 19:46:41

好吧,我刚刚修好了。经过一番疯狂的谷歌搜索后,我在论坛中发现了这段信息......

我不确定你要什么,但你的 .jsx 文件是否像这样......

#目标插画师

警报('你好');

然后只需双击即可在应用程序外部执行它们。
当也包含此脚本时,ESTK 应始终选择正确的应用程序来运行/测试脚本。

这与我的问题无关,但是,出于好奇,我将 #target illustrator 放入 Extendscript 中,果然 Illustrator 弹出到目标应用程序的下拉列表中。然后我删除了#target illustrator,它仍然在下拉列表中,我能够做我打算做的事情。

所以现在你知道了。

Ok I just fixed it. After some furious googling I found this snippet of information in a forum...

Im not sure what you are asking for but have you headed your .jsx files like so…

#target illustrator

alert('Hello');

They can then be executed outside of the app just by double click.
The ESTK should always select the correct app in which to run/test the script when this is >included too.

This wasn't relevant to my question, however, intrigued, I put #target illustrator into Extendscript and sure enough Illustrator popped into the drop down list for targeted apps. I then removed the #target illustrator and it's still in the dropdown and I'm able to do what I set out to do.

So now you know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文