Copy link to clipboard
Copied
I have a simple .jsx script for AE.
If i use use some ECMAscript 5 statements (like let assignment or arrow functions) the program fail with syntax error:
writeln(app.project.expressionEngine); // ouput javascript-1.0
let a = 1; // Syntax Error: Expected: ;
const something = () => { // Syntax Error: ) does not have a value
// ...
}
AE project has set javascript as expression engine and expressions inside a property of a composition that use EXCMAScript 5 works correctly.
The problem is only with external jsx file.
ExtendScript is based on ES3, it's completely different than the new Javascript Expression Engine which is based on ES6. ES3 doesn't support let or arrow functions. You'll need to use var and standard function(){} instead.
Copy link to clipboard
Copied
ExtendScript is based on ES3, it's completely different than the new Javascript Expression Engine which is based on ES6. ES3 doesn't support let or arrow functions. You'll need to use var and standard function(){} instead.
Copy link to clipboard
Copied
oh damn! it is strange that two different engines are used. it would be nice if the external script engine was also updated
thanks
Copy link to clipboard
Copied
ExtendScript is going to be replaced with UXP eventually which is modern JS. See more info on that here: https://medium.com/adobetech/scripting-changes-in-adobes-video-applications-1bee1fc0fe47
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more