Extendscript in premire REALLY feels like the wild west to me when it comes to getting coherant information on the internet, so I'm trying to start this off really basic. I have VS code installed and I've added the extendscript toolkit to it. All I'm trying to do is make a simple window pop up when the script is run. This is what I have typed:
var win = new Window("palette", "My Panel", undefined);
var button = win.add("button", undefined, "Click me!");
button.onClick = function() {
alert("Button clicked!");
}
win.show();
I've tried a couple of different variations of this, but I always end up with the same error:
Eval Error (#22): "Window does not have a constructor" in '/****/****/***/****' [1:1] in host 'premierepro-23.0 (NewWorld)'.
(Note that I censored the file name in the error report.)
Can anyone explain to me what I'm doing wrong?