Skip to main content
Participant
January 7, 2022
Answered

Premiere Pro 2021 (V15.41) can not working simple alert script of numbers

  • January 7, 2022
  • 1 reply
  • 318 views

Hello from Japan.

I am testing simple ExtendScript from VS code, and I can not working simple script alert(10); .

I can get only strings by alert.
Old premiere versions (cc 2018) and AE scripts were able to get numbers by alert().

Does anyone know a solution to this problem?

(VS code's ExtendScript Debugger is version 1.1.2) 

This topic has been closed for replies.
Correct answer Bruce Bullis

That was before New World scripting; implicit type coercion is only available in Old World (which is no longer available in PPro versions 14.0.3+). 

 

This will work in both obsolete and current versions:

var val = 10;

alert(val.toString());

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
January 7, 2022

That was before New World scripting; implicit type coercion is only available in Old World (which is no longer available in PPro versions 14.0.3+). 

 

This will work in both obsolete and current versions:

var val = 10;

alert(val.toString());
Participant
January 7, 2022

Thanks for your answer!
I will investigating Javascript method.