Call other scripts with Extendscript?
I've been trying to find a way to call scripts from other scripts but can't seem to find any documentation on it.
... but it turns out it's very limited and doesn't behave like you'd expect. There are two major limitations that I've noticed so far:
var f = new File("path/to/jsx/script");
f.execute();1. On Windows, if the default application that .jsx files are set to open in is anything but Illustrator (or whatever other Adobe app), then they won't execute in Illustrator at all and instead literally open in another program, like a code editor.
2. One script calling another simply executes the second script after the first script is completely done executing no matter where in the code you call for the execution. This coupled with the fact that the only thing that f.execute(); can return is true if the second script was executed successfully. So you can't pass data between scripts when you want to.
Is there a proper way to call other scripts with Extendscript?
