Liking a jsx file wwith
I'm currently trying to run some code to be executed in an illustrator file from my script. I'll explain my scenario and what I'm trying to achieve.
I'm using illustrator cc 2019.
I have the extensions panel test from Adobe and in it there is the following file in CSXS/manifest.xml here I have my resource and script path like this:
<MainPath>./html/index.html</MainPath>
<ScriptPath>./jsx/core.jsx</ScriptPath>
Now in my index html file I put this:
var csInterface = new CSInterface();
csInterface.evalScript('app.documents.add();', evalScriptCallback());
in core.jsx file I put this call back:
function evalScriptCallback(result)
{
alert('this is my test');
}
This isn't working for me and nothing happens. The expected result would be to have an alert that says "This is my test".
However when I put this function evalScriptCallback in my index.html file then it works. I'm assuming the core.jsx file isn't linking but it's in the manifest.xml file that is my confusion.
I also tried this:
removing the core.jsx from the manfiest and adding it in a jsx call back file like so:
jsx.file("../jsx/citylocs.jsx", myFabCallBack);
Can anyone give me any direction?
