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

unable to access jsx file from java script in adobe photoshop

Explorer ,
Aug 07, 2018 Aug 07, 2018

Copy link to clipboard

Copied

The following images depicts the  folder structure of adobe cep illustrator extension panel which i have designed.

folder1.PNG

folder2.PNG

and the problem is that i am able to use core.jsx file which is in jsx folder in adobe illustrator. Now as per the requirement i need to make this plugin able to work in Photoshop and changed the manifest file commands which support photoshop. Now i am unable to use the jsx functions and retrive the data needed. control not even entering to core.jsx file. I am unable to find what the problem is. And while debugging its prompting a message "Unexpected token E in JSON at position 0 ".

Could some one help me with this?

[Moved it  from Photoshop to Extensions / Add-ons Development by Moderator]

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
People's Champ ,
Aug 07, 2018 Aug 07, 2018

Copy link to clipboard

Copied

It might be (hard to state without code) that Photoshop script engine evaluates code designed for illustrator (i.e. calling AI API such as app.activeDocument.artboards[0] ) — or the contrary — and fails to load, thus failing the data to be returned, thus leading to HTML/JS error.

Look at samples, they are designed to load and evaluate jsx files on a per app basis avoiding those kind of issues.

An easy way to debug is to comment all your jsx code once to see if problem still occurs and uncomment little by little until you find the problematic area of your code.

HTH

Loic

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
Explorer ,
Aug 07, 2018 Aug 07, 2018

Copy link to clipboard

Copied

what files do you need to verify?

i Did all the ways to trace the error and finally unable to find it.

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
People's Champ ,
Aug 07, 2018 Aug 07, 2018

Copy link to clipboard

Copied

If all went fine when it was Illustrator only and then just fails because you open it to Photoshop, I would certainly check the jsx file.

An easy way is to run jsx file in ExtendScript ToolKit while Targeting Photoshop. If there is an execution error, you will quickly see.

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
Explorer ,
Aug 07, 2018 Aug 07, 2018

Copy link to clipboard

Copied

LATEST

could you please help me using this ExtendScript Tool Kit? i haven't used this before..

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