“Console.log” with Photoshop Scripting - ExtendedScript Toolkit

前提是你 提交于 2019-12-20 15:59:14

问题


I'm doing a bit of Photoshop scripting for the first time and it sure would be great to have a console.log-like function to output array and object values in the Javascript console of the ExtendScript Toolkit App.

Is there an equivalent function?


回答1:


$.writeln() is what you're looking for. See the JavaScript Tools Guide (PDF) for details.




回答2:


write("any message");

Is what works in XTools for Photoshop. I find that the Photoshop debugger crashes all the time in CS6 on Mac OSX.

You can find more about XTools here: http://ps-scripts.sourceforge.net/xtools.html.

It's fabulous!




回答3:


I'm using ExtendScript Toolkit version 4.0, and using _print('foo') seems to do the trick.



来源:https://stackoverflow.com/questions/8545497/console-log-with-photoshop-scripting-extendedscript-toolkit

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