Copy link to clipboard
Copied
I converted my code to jsxbin adn part of it is the main.js which is referenced from my index.html.
I'm asking this since i get errors such as:
Uncaught SyntaxError: Invalid or unexpected token whne i try to run my panel.
Can i include it:
<script src="./js/export/main.jsxbin"></scripr>
jsxbin is a binary format of the ExtendScript script that gives you accessibilty to the host application. While js is the Javascript that deals with the UI elements of your extension, you can't directly use extendscript in the js context. You need to CSInterface for passing the control from UI JS to the ExtendScript interface. So i don't see this to be possible even in case of jsx as well
-Manan
Copy link to clipboard
Copied
jsxbin is a binary format of the ExtendScript script that gives you accessibilty to the host application. While js is the Javascript that deals with the UI elements of your extension, you can't directly use extendscript in the js context. You need to CSInterface for passing the control from UI JS to the ExtendScript interface. So i don't see this to be possible even in case of jsx as well
-Manan