Can I pass arguments to #include script
I'll try to simplify this and add more detail if questions are asked:
I have two scripts: Script_A.jsx and Script_B.jsx.
Script_A.jsx creates a window and a button on the window runs:
#include "Script_B.jsx"
That works fine, but I would like to pass the window from Script_A to Script_B so Script_B can check some of the values from the window.
Is there a way to do this?
Something like:
#include "Script_B(win).jsx"
or
#include "Script_B.jsx {arguments:win}"
I realize it could be done by including the functions of Script_B into Script_A and making one massive script, but I'd like to make that my last resort.
Thanks in advance!
