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

Error including .jsxbin

Participant ,
May 21, 2018 May 21, 2018

Hello Insane coders.

I'm about to finalize a huge script.

But I got a weird behavior.

If I include the .jsx files. Everything works fine.

But if I convert this same file to .jsxbin and include,

My script crashes, showing that error:

( Unable to execute the script at line 1. expected: ; )

Does anybody know why this is happening?

Thanks, Rubens Nobre.

TOPICS
Scripting
1.9K
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

Advocate , May 21, 2018 May 21, 2018

In this case your best friend is $.evalFile('pathToFile');

This way you can dynamically feed path to file, or even check if such file exits (in case user removed it). With #include you wouldn't be able to do so.

Translate
Advocate ,
May 21, 2018 May 21, 2018

Quick reply - don't include jsxbin ¯\_(ツ)_/¯

Later you can obfuscate your main script once you finish your code, so all the includes will be obfuscated as well. So there's no point in obfuscating them prior to release.

Unless you have other plans.

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, 2018 May 21, 2018

But some #included files, have functions I'd like to obfuscate, and they will be non protected files inside assets folder.
There's any other solution Master Tom?

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
Advocate ,
May 21, 2018 May 21, 2018

In this case your best friend is $.evalFile('pathToFile');

This way you can dynamically feed path to file, or even check if such file exits (in case user removed it). With #include you wouldn't be able to do so.

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, 2018 May 21, 2018

Thank you again MASTER TOM !!!

Quick question: Do you work at ADOBE? Because I think you know this software better than they do.

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
Advocate ,
May 21, 2018 May 21, 2018

Adobe cannot afford me:) I'm just doing it all for fun.

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, 2018 May 21, 2018
LATEST

Cool.... Thanks for help again!

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