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

ExtendScript Bugs? (proper language guide for ES)

Guest
May 09, 2017 May 09, 2017

Copy link to clipboard

Copied

We've come across some differences in behavior between PS's ExtendScript and actual JS.  The most recent example involves logical expressions:

1 && 2 || 3 && 4 // (4 in Photoshop and 2 in Chrome/IE/Safari/NodeJS)

Are these behavioral differences bugs or "features"? If it is intended to deviate from JS, is there any sort of proper ExtendScript language reference that documents the issues?

P.S.: If any Adobe employee reads this, would it be possible to just integrate V8 or a more modern JS engine?

TOPICS
Actions and scripting

Views

1.1K

Translate

Translate

Report

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

correct answers 1 Correct answer

Enthusiast , May 10, 2017 May 10, 2017

Somebody already had same question. But there was not usefull answer.

Some anomalies are here: PS-SCRIPTS.COM - Bugs, Anomalies, Documentation Errors

But it's not official documentation.

The JSX has some extra features like writing/reading disk.

In HTML panel you could use ECMA6 and node.js

There is Blink engine like in Chrome. But you still need to use some JSX.

Votes

Translate

Translate
Adobe
Enthusiast ,
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

Somebody already had same question. But there was not usefull answer.

Some anomalies are here: PS-SCRIPTS.COM - Bugs, Anomalies, Documentation Errors

But it's not official documentation.

The JSX has some extra features like writing/reading disk.

In HTML panel you could use ECMA6 and node.js

There is Blink engine like in Chrome. But you still need to use some JSX.

Votes

Translate

Translate

Report

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
Guest
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

@Jarda_Bereza Thanks for the reference! We will definitely search the ps-scripts forum next time we come across an issue.

@Tom_Ruark Even if switching to a modern JS engine is not feasible, some Adobe-blessed ESLint rules would help JS developers ensure code will work in ExtendScript.  Most of the quirks we came across are parsing discrepancies and it should theoretically be possible to detect bad patterns with static analysis.

Votes

Translate

Translate

Report

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
Enthusiast ,
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

LATEST

Adobe maintain Action Manager code and DOM code a little bit. They do some documentations updates sometimes. And I appreciate it. But core of JSX and ExtendScript toolkit seems to be untouched for years.

Anyway if you open folder: c:\Program Files (x86)\Adobe\Adobe ExtendScript Toolkit CC\Required\

there are many .jsx files with aplication logic. So we maybe could adjust ExtendScript Toolkit to fit our needs.

Votes

Translate

Translate

Report

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
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

We had a person that was going to move to V8 from ExtendScript over the weekend. They didn't come back yet from their weekend.

Votes

Translate

Translate

Report

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
Advisor ,
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

To whom should I send the flowers?

Votes

Translate

Translate

Report

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