cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

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