cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

need to close an open plot window

learning_JSL
Level IV

Hi - I am using JMP 12.1 and trying to use script to close an open plot window after it displays for about 5 seconds.  I am using the following script but it is not working.  (I am new to scripting and unfortunately am not finding the answers I need in the JSL index - probably user error(!) - but so far it has not been very intuitive or simply has not had the information I'm looking for.) 

 

....fit and plot model, etc.....

wait (5);

Window( "100321 for jmp - fit least squares - JMP" ) << close window

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User


Re: need to close an open plot window

My guess is that you are not using the correct window name.  Typically the "- JMP".

You can use this JSL to loop through the window names to see what their names are.

Names Default To Here( 1 );
i = 1;
While( Window( i ) << get window title != {},
	Show( Window( i ) << get window title );
	i++;
);
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User


Re: need to close an open plot window

My guess is that you are not using the correct window name.  Typically the "- JMP".

You can use this JSL to loop through the window names to see what their names are.

Names Default To Here( 1 );
i = 1;
While( Window( i ) << get window title != {},
	Show( Window( i ) << get window title );
	i++;
);
Jim
learning_JSL
Level IV


Re: need to close an open plot window

Thanks txnelson for the tip!  I'm all set.