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

How can I save/export a JavaScript (JSX) file as an encrypted file (jsxbin) in VS code on MAC OS?

Participant ,
May 21, 2024 May 21, 2024

How can I save/export a JavaScript (JSX) file as an encrypted file (jsxbin) in VS code on MAC OS?

TOPICS
Import and export , Scripting
1.7K
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
Adobe
Contributor ,
May 21, 2024 May 21, 2024

 

Install an extension "Text to JSXBIN" 

  • Select created piece of code.
  • Right click of the mouse and choose TextToJSXBIN
  • Selected code will be converted to JSXBIN, put inside eval and original code will be commented.
  • Save File
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
Participant ,
May 21, 2024 May 21, 2024

installed the extension, but getting this error…

Cannot read properties of undefined (reading 'extensionPath')

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
Community Expert ,
May 29, 2024 May 29, 2024
LATEST

You could that without any extension apart from the "Adobe Extendscript Extension". I quote how to do that from the article linked below

"Export to JSXBin

You can export your .js and .jsx scripts to JSXBin by right-clicking the editor window of a .js or .jsx file and selecting Export As Binary.... A file name suggestion will be provided. If you proceed with the export, the results will be saved in the same directory as your currently opened file. You can enter a complete path for the output if desired.

The command string is extension.extendscript-debug.exportToJSXBin and there are no configurable command arguments."

https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug

-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