To open a script file into a script window, one can use:
scriptWindow = New Window( "script editor", <<Type( "Script" ), "" );
code= Load Text File(filename);
scriptWindow [Script Box( 1 )] << set text(code)
Afterwards the script editor contains the code of the file filename. But the Script Editor doesn't know the location of filename.
So, include(file2) and open(file2) will not work in the code.
Is it possible to remote control the script editor to "open" the script file? Something like
current window() << open(file)
Plan B: redirect JMP to the correct file path.
I tried it with Set Default Path() and Set File Search Path() but it didn't work.