Copy link to clipboard
Copied
So Adobe, why does Photoshop scripting still use ECMA version 3 (circa December 1999)?
The request for Photoshop ECMA script to join the 21st century by davidebarranca four years ago has been largely ignored or denied.
scripting-extendscript-support-for-ecmascript-6th-version/
Rhetorically, why can't we use nice things like .map(), .filter() .firstIndexOf()?
Copy link to clipboard
Copied
This is still primarily a user Forum so if you want to »talk to« Adobe you are at the wrong place.
Have you been following @DBarranca ’s posts about Adobe UXP?
https://www.davidebarranca.com/development/adobe-uxp-things-you-need-to-know
Copy link to clipboard
Copied
It's a rhetorical opening gambit 🙂
Copy link to clipboard
Copied
Did you watch the videos?
Because I seem to recall that he mentions changes in Photoshop scripting.
Copy link to clipboard
Copied
C:\Program Files\Adobe\Adobe Photoshop 2021\Presets\Scripts\Stack Scripts Only\ArrayPolyfills.jsx
Copy link to clipboard
Copied
Hi @Kukurykus , can you explain what this means? I'm assuming it's some kind of polyfill but I don't have that folder or know where you get the contents of ArrayPolyfills.jsx from. I do have these folders that I've had to put other files in.
C:\Program Files\Common Files\Adobe
C:\Users\(usename)\AppData\Roaming\Adobe\Adobe Photoshop 2022\Adobe Photoshop 2022 Settings
Copy link to clipboard
Copied
You can include this specific .jsx file from your other script (at its beginning) to access modern Javascript methods. I indicated a folder where your Photoshop should be installed in.
Copy link to clipboard
Copied
But where do you get your contents of your ArrayPolyfills.jsx file? Did you just look for a polyfill for ECMA 3?
Copy link to clipboard
Copied
I don't understand what you ask for. Say it other way.
Copy link to clipboard
Copied
What is inside of ArrayPolyfills.jsx?
Copy link to clipboard
Copied
The functions the original poster mentioned plus some more.
Copy link to clipboard
Copied