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

can I use binary js in my index.html?

Engaged ,
Aug 13, 2019 Aug 13, 2019

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>

  
<script src="./js/export/main.jsxbin"></script>
I'm asking this sinece
I am asking since i get fdf
fdfdfdf

Views

468

Translate

Translate

Report

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

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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