Extendscript Toolkit 2 can't target Illustrator CS3

断了今生、忘了曾经 提交于 2019-12-08 05:09:46

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/4027003/extendscript-toolkit-2-cant-target-illustrator-cs3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!