For the latest version of JMP Help, visit JMP.com/help.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Run Script( "Bivariate" );
dt << Run Script( "Distribution" );
Wait( 2 );
Get Window( "Big Class - Distribution" ) << Close Window();
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Run Script( "Bivariate" );
dt << Run Script( "Distribution" );
Wait( 2 );
Get Window( "Big Class - Distribution" ) << Close Window();
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(
	dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
	dt << Run Script( "Bivariate" );
	dt << Run Script( "Distribution" );
	Wait( 2 );
	Get Window( "Big Class - Distribution" ) << Close Window();
);
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.

Help created on 3/19/2020