- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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++;
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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++;
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: need to close an open plot window
Thanks txnelson for the tip! I'm all set.