Thanks for the answer.
But this is not what I need.
I need the script to work only in the composition that is open in the “Viewer”.
And if the selected other composition, then show the “alert”
Hello.
I did not immediately notice, but the problem was not completely resolved.
I changed “close ()” to “hide ()” and the window closes when I click the button. But when you click on the “closeButton” the window never closes.
Help me please.