Skip to main content
Inspiring
October 20, 2021
Answered

How to call JavaScript function inside ExtendScript?

  • October 20, 2021
  • 1 reply
  • 1163 views

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

This topic has been closed for replies.
Correct answer livl17017666

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

1 reply

c.pfaffenbichler
Community Expert
Community Expert
October 20, 2021

 

Could you describe what you mean? 

 

Inspiring
October 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?

livl17017666AuthorCorrect answer
Inspiring
October 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