I find that, when I set the window size of a data table with JSL, then save it out, there's at least one mode where the window size settings don't seem to have been saved with the .jmp file. Instead, it seems that the window size settings from the last manually saved settings, (i.e., via the UI), are used for (or saved with) the .jmp file. The following code is made up of snippets from my JSL script, so has not been tested by itself, but is representative:
dt = Current Data Table();
window = Get Window( dt );
window << Set Window Size( 1300, 700 );
dt << Save( "myTable.jmp" );
dt << Close Window;
I have also tried using Set Content Size()
instead of Set Window Size()
, and it seems to behave the same way. (It's not clear to me from the docs which is more appropriate for this purpose; perhaps someone could comment on the specific difference between the two.)
I am experiencing this behavior running JMP 14.2 under Windows 7. However, I notice that, with Mac OS (running 14.3), I'm not able to reproduce the issue, and the JMP table window sizes always get saved as expected by the JSL script. This makes me wonder whether there might be any User Preferences settings that are overriding the script's parameters. (I've encountered this before with Open()
.)
The only other discussion I could find on this subject generally was screen size, but it does not seem to be directly relevant.