Skip to main content
Inspiring
August 13, 2019
Answered

can I use binary js in my index.html?

  • August 13, 2019
  • 1 reply
  • 548 views

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>

  
<script src="./js/export/main.jsxbin"></script>
I'm asking this sinece
I am asking since i get fdf
fdfdfdf
This topic has been closed for replies.
Correct answer Manan Joshi

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

1 reply

Manan JoshiCommunity ExpertCorrect answer
Community Expert
August 13, 2019

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

-Manan