I am looking for a line of script code that allows me to close all open journals except one window.
Acutally the extraction of the correct name list does not work. It is then not possible to match it to journal name that should stay open. See below script *** .
CloseAllJournalsExcept = Function( {},
JournalName = "StaysOpen";
For( i = N Items( Window() ), i > 0, i--,
If( Window( i ) << GetName != JournalName, //***
Window( i ) << close window()
)
);
);
Thanks.