Skip to main content
Participant
July 23, 2015
Open for Voting

P: [PS Scripting] ExtendScript support for ECMAScript 6th version

  • July 23, 2015
  • 22 replies
  • 2154 views

ExtendScript as it's implemented in Photoshop Scripting engine is compliant to:

- ECMA-262 (version 3)
- EX4 (EcmaScript for XML)

plus other custom stuff like Filesystem management, Reflection interface, operator overloading, etc.
It's a great language, but... the rest of the Javascript world has moved to ECMA-262 version 6 aka ES6 Harmony, while so to speak we're stuck at ES3.

We don't have native support (among the rest) of JSON, Array.indexOf, Promises, Object.create, etc...

It's becoming increasingly difficult to interface with JS libraries, since shims are not always available/functional.

Also, strategically, we're in a cul-de-sac (aka dead end): there hasn't ever been a major language update (besides ScriptUI changes to support different rendering engines over the years), the PS Scripting language cannot not-evolve now that JS seems to have gained a great momentum and it's as lively as it's never been in the past.

My feature request is not to substitute ExtendScript with JS tout-court (since it would mean give up to EX4 and proprietary stuff), but to incorporate the new ES6 syntax and features - give ExtendScript a place in the future.

Thank you very much,

Davide Barranca
---

[weblinks removed by moderator]

 

22 replies

June 26, 2016
I support this request! 
An update with ECMAScript 6 features would allow to code cleaner, better, faster, stronger.
Known Participant
May 31, 2016
Having to play the "is this basic native function supported or not" game is not a fun one. Having to write and/or include my own versions of things like Array.firstIndexOf() is frustrating.
Inspiring
September 10, 2015
Totally agree! I want .forEach() and .map()!
Inspiring
July 23, 2015
Thumbs up, it's very frustrating having to "cut back" on what you know and like is the best way to code JS because it'll not work with ESTK. We have regularly updated Chrome in panels and modern Node.js in Generator, but ESTK is holding all those back.
Inspiring
July 23, 2015
Davide' extensions are critical for mine, and my clients, workflows, I'd love for him to have the widest toolset possible for his work, thanks Davide.
Pedro Cortez Marques
Legend
July 23, 2015
I do need this for our workflow optimization!
Participant
July 23, 2015
My mistake, I should have written 'E4X' (ECMA357) - thanks to @indiscripts for reporting!
Participant
July 23, 2015
🙂 Thank you, from now on I'll ask my wife to call me Davide "reasonable" Barranca!
Alexander Walter
Participating Frequently
July 23, 2015
Unfortunately I don't have the faintest idea what this is all about since I stopped programming a decade ago. But I know Davide and everything he does is truly reasonable.
Inspiring
July 23, 2015
ES6 would be super useful in PS for us script/extension writers. Please help us make your product better for the users!