Skip to main content
Inspiring
October 20, 2021
解決済み

How to call JavaScript function inside ExtendScript?

  • October 20, 2021
  • 返信数 1.
  • 1172 ビュー

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

このトピックへの返信は締め切られました。
解決に役立った回答 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

c.pfaffenbichler
Community Expert
Community Expert
October 20, 2021

 

Could you describe what you mean? 

 

livl17017666作成者
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?

livl17017666作成者解決!
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