Referencing the current windowHi - I need to refer in a small JSL script I've written to "the window from which I'm running this script". In the past I've done that just by referencing "window(0)", but this doesn't appear to work in JMP 14: the window I want to reference seems to have changed to "window(k)" where k is the largest integer for which a window exists. Two questions:
- Am I right about this apparent change, and if so, is there a single way I can call "the window from which I'm running this script" that will work in both JMP 13 and JMP 14 without my having to check which version I'm running?
- How can I access the list of currently open windows? At the moment I'm just checking them from 1 upwards in sequence to see if each one exists, and stopping when I find one that doesn't - which works fine, but it's a little inelegant. Is there a simple function that just returns a list of them? I couldn't find one, but I might just be looking for the wrong name.
Many thanks
Re: Referencing the current windowThanks Jim - that'll enable me to tidy up the creation of a list of window names, and incorporating a check on the JMP version number is no big deal, though I was hoping to dispense with it if possible.
I'll regard this one as resolved now and move on - many thanks for your help.
Re: Referencing the current windowN Items( Window() )
This will give you the count of the open windows.
Window(n) has the following messages available
<<GET window="" title=""><<GET picture=""><<GET html=""><<GET text=""><<SET window="" title=""><<SET report="" title=""><<SET dirty=""><<SELECT><<SELECTABLE><<GET annotation=""><<DELETE><<GET rtf=""><<GET journal=""><<GET script=""><<GET xml=""><<SAVE picture=""><<SAVE interactive="" html=""><<GET window="" size=""><<GET window="" id=""><<GET project=""><<GET content="" size=""><<SET content="" size=""><<SET window="" title=""><<SET print="" headers=""><<SET print="" footers=""><<GETOFFSET><<GET size=""><<SETNOTSTRETCHABLE><<GET min="" size=""><<SET min="" size=""><<GET max="" size=""><<SET max="" size=""><<GET auto="" stretching=""><<GET auto="" centering=""><<SET auto="" centering=""><<GET row="" states=""><<GET width=""><<SET width=""><<GET height=""><<SET height=""><<GET property=""><<GET property="" list=""><<GET properties=""><<GET property=""><<GET property="" list=""><<GET properties=""></GET></GET></GET></GET></GET></GET></SET></GET></SET></GET></GET></SET></GET></GET></SET></GET></SET></GET></SETNOTSTRETCHABLE></GET></GETOFFSET></SET></SET></SET></SET></GET></GET></GET></GET></SAVE></SAVE></GET></GET></GET></GET></DELETE></GET></SELECTABLE></SELECT></SET></SET></SET></GET></GET></GET></GET>