Hello
I didn't found any Script Forum, so I hope Macro is close enough
I am currently playing with the new script engine, and I have several questions you may have already answered.
Is there a way to write in the Output Window ?
it could be very useful to debug scripts.
Is it possible to disable the Output Window for a script.
I am using a TODO macro (with FindInFiles) and if I use a script, I lose all my todos just to know my 'Script succeeded'...
Is there a command to stop the execution of a script, like a 'stop' or 'exit' keyword ?
The doc say the script engine implements JavaScript 1.7, but it seems I can't use some 1.7 features, like 'yield'.
Here is the example from Mozilla Dev Center :
Thanks for your help!
I didn't found any Script Forum, so I hope Macro is close enough
I am currently playing with the new script engine, and I have several questions you may have already answered.
Is there a way to write in the Output Window ?
it could be very useful to debug scripts.
Is it possible to disable the Output Window for a script.
I am using a TODO macro (with FindInFiles) and if I use a script, I lose all my todos just to know my 'Script succeeded'...
Is there a command to stop the execution of a script, like a 'stop' or 'exit' keyword ?
The doc say the script engine implements JavaScript 1.7, but it seems I can't use some 1.7 features, like 'yield'.
Here is the example from Mozilla Dev Center :
Code: Select all
function fib() {
var i = 0, j = 1;
while (true) {
yield i;
var t = i;
i = j;
j += t;
}
}
var g = fib();
for (var i = 0; i < 10; i++) {
document.write(g.next() + "<BR>\n");
}