Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

can I use binary js in my index.html?

Engaged ,
Aug 13, 2019 Aug 13, 2019

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
506
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 13, 2019 Aug 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

Translate
Community Expert ,
Aug 13, 2019 Aug 13, 2019
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines