Hi - 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:
Many thanks
N 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
N 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
Thanks 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.