Answered
Running jsx files from another jsx file
Hello
I have a bunch of scripts that I would like to call from a single "motherscript". Any idea how I could do this please?
The child scripts all look like this:
//@target photoshop;
(function() {
/*Script contents goes here*/
})();
The mother script could look something like this:
(function() {
if (searchKeyword("scriptA")){
/* load and run file a.jsx */
}
if (searchKeyword("scriptB")){
/* load and run file b.jsx */
}
if (searchKeyword("scriptC")){
/* load and run file c.jsx */
}
})();
How could I load them from motherscript.jsx?
I'm really stuck on this, any help is appreciated. 🙂
