“Console.log” with Photoshop Scripting - ExtendedScript Toolkit
-
19-03-2021 - |
Frage
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?
Lösung
$.writeln()
is what you're looking for. See the JavaScript Tools Guide (PDF) for details.
Andere Tipps
I'm using ExtendScript Toolkit version 4.0, and using _print('foo')
seems to do the trick.
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!
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow