Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank you again MASTER TOM !!!
Quick question: Do you work at ADOBE? Because I think you know this software better than they do.
Copy link to clipboard
Copied
Adobe cannot afford me:) I'm just doing it all for fun.
Copy link to clipboard
Copied
Cool.... Thanks for help again!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more