cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
learning_JSL
Level IV

need to close an open plot window

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.  

Recommended Articles