Skip to main content
dublove
Legend
Nov 30, 2026 11:22 AM UTC
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;
}

 

    2 replies

    Community Expert
    Nov 30, 2026 11:37 AM UTC

    Why do you need the confirmation dialog if you want to automatically confirm it? Look at removing it that should be easier

    Translate
    -Manan
    dublove
    dubloveAuthor
    Legend
    Nov 30, 2026 1:24 PM UTC

    Hi ​@Manan Joshi 

    I am waiting for confirmation of the update after modifying the images in Photoshop.
    Perhaps you have a better way to automatically update the modified images in Photoshop.

    Translate