how to call evalFile with parameter using evalScript?
Hi,
I need to call evalFile with parameter using evalScript.
Folder Structure: C:\Program Files\Common Files\Adobe\CEP\extensions\MY_CUSTOM_CEP_EXT_001
CSXS
manifest.xml
client
index.html
style.css
index.js
CSInterface.js
host
index.jsx
loaderScript.jsx
images
META-INF
signatures.xml
node_modules
mimetype
In loaderScript.jsx
function getData_extcall(name, age) {
return JSON.stringify({'error': 0, 'name': name, 'age': age});
}In client/index.js
var callExtFilePath = csInterface.getSystemPath(SystemPath.EXTENSION) + "/host/loaderScript.jsx";
csInterface.evalScript(`$.evalFile("${callExtFilePath}")`, function(result) {
console.log("Result Extcall : " + result + "\n\n");
});Please help.
