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

How to call JavaScript function inside ExtendScript?

Participant ,
Oct 20, 2021 Oct 20, 2021

I am trying to create extension and I need some function from javascript file that I want to use inside extendscript.

That function can not be run inside extendscript, only inside javascript, so how to call JavaScript function inside ExtendScript??

TOPICS
ExtendScript
1.1K
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

correct answers 1 Correct answer

Participant , Oct 26, 2021 Oct 26, 2021

On this link there are some documentation about "Access HTML DOM from extend script":

 

https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/Documentation/CEP%2011.1%20HTML%20Extension%20Cookbook.md

Translate
Community Expert ,
Oct 20, 2021 Oct 20, 2021

 

Could you describe what you mean? 

 

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
Participant ,
Oct 20, 2021 Oct 20, 2021

I have javascript file with some functions I would like to use that functions inside extendscript file. Both javascript and extend script are part of extension.

 

I known for: 
var csInterface = new CSInterface();
csInterface.evalScript..

 

with this above I can use function from extedscript inside javascript but how I can do reverse process use functions from javascript inside extendscript?

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
Participant ,
Oct 26, 2021 Oct 26, 2021
LATEST

On this link there are some documentation about "Access HTML DOM from extend script":

 

https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/Documentation/CEP%2011.1%20HTML%20Ex...

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