Question
Can you think of a way to automatically confirm 'Yes' when the Indesign window is reactivated from the taskbar?
After running the code, this window pops up and the current program temporarily switches to ps.
When the taskbar window is activated again, can it automatically confirm "yes" or execute a piece of code?
var num = 5;
var a;
main(num);
if (confirm('executed?')) {
alert(a);
}
function main(b) {
a = 3 + b;
}
