Wait( 2 );
Wait( 2 );
Note that this time, the data table and the reports all opened as tabs in the project, and that Get Window() correctly found the distribution tab. In general, all JSL functions that open, find, manipulate, and close JMP windows, tables, and reports work from within a project the same as they would outside projects.
When a project is itself created from a JSL script, you can use the project’s Run Script message to run JSL in the project’s context. Open a Script Editor window, then paste and run the following code:
project = New Project();
project << Run Script(
Note that the script inside the Run Script message runs the same as if it had been in a script editor window inside the project.