Hi Matz,
If my understanding is correct, windows (workbooks, graphs, etc.)
inside Origin are not "indexed" for management. You can identify
windows by enumeration like:
ii=2;
window -a book$(ii);
By the way, if you have questions about scripting, posting to
LabTalk Forum is a better way to go as it would get exposed to more
experienced readers.
--Hideo Fujii
OriginLab