Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Photoshop scripting ECMA time up update from version 3

Engaged ,
May 18, 2021 May 18, 2021

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()?

 

 

TOPICS
Actions and scripting
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
May 18, 2021 May 18, 2021

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 18, 2021 May 18, 2021

It's a rhetorical opening gambit 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 18, 2021 May 18, 2021

Did you watch the videos? 

Because I seem to recall that he mentions changes in Photoshop scripting. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2021 May 18, 2021

C:\Program Files\Adobe\Adobe Photoshop 2021\Presets\Scripts\Stack Scripts Only\ArrayPolyfills.jsx

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 07, 2021 Dec 07, 2021

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2021 Dec 07, 2021

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 07, 2021 Dec 07, 2021

But where do you get your contents of your ArrayPolyfills.jsx file?  Did you just look for a polyfill for ECMA 3?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2021 Dec 07, 2021

I don't understand what you ask for. Say it other way.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 07, 2021 Dec 07, 2021

What is inside of ArrayPolyfills.jsx?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2021 Dec 07, 2021
LATEST

The functions the original poster mentioned plus some more.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2021 Dec 07, 2021
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines