This content has been marked as final.
Show 1 reply
-
1. Re: How to debug an Illustrator script palette button / object?
CarlosCanto Jun 28, 2013 8:31 AM (in response to alanomaly)to post formatted code, you first have to click on the "Use advanced editor" in your Post Widget, then type or paste your code, select it and click on the "chevron" icon called "insert", that's a menu that will show the options "Syntax Highlighting", then click on "Java"
to debug your code, there's a debug Menu in the ESTK, it is all explained in the one of the Documents, I think it is in the Intro to Scripting, not sure
"console.log( app.activeDocument.selection )" and browse the object structure to see what's going on, is there any Illustrator equivalent?
use
$.writeln(app.activeDocument.name)


