Output And Interaction - ff6347/extendscript GitHub Wiki
####Output
/*
To get a quick look at an value use alerts
like this
*/
var bool = true;
alert(bool);
####Output to console
/*
In the ESTK you can also use the console
hit ctrl+j
*/
var text = "write me into the console";
$.writeln (text);
####Interaction
/*
Interact with the user via
alerts, prompts and confirms
*/
var res = null;
res = confirm("Hello World?",false,"Title WIN only");
if(res == true){
res = prompt("Enter something:","Hello World!","Title WIN only");
alert(res);
}else if(res == false){
alert("nothing to see here. Move along!");
}