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
Jim