Skip to main content
Participant
January 10, 2023
Answered

Creating a new window using Adobe Extendscript in Premiere

  • January 10, 2023
  • 2 replies
  • 1030 views

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?
This topic has been closed for replies.
Correct answer Bruce Bullis

PPro ExtendScript support does not include ScriptUI, which is what you're using. 

alerts and file/folder pickers work fine though.

 

perhaps you could use CEP JavaScript, to handle UI?

2 replies

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
January 10, 2023

PPro ExtendScript support does not include ScriptUI, which is what you're using. 

alerts and file/folder pickers work fine though.

 

perhaps you could use CEP JavaScript, to handle UI?

Participant
January 10, 2023

Ok, I understand. I will look into CEP Javascript. Thanks for the help!

R Neil Haugen
Legend
January 10, 2023

@Bruce Bullis to the rescue ... again, please?

 

Neil

Everyone's mileage always varies ...