var selBox = scene.getBoxById("myListBox"); if (selBox) { var box = selBox.getFirstRowBox(); while(box) { shell.print("Box ID: " + box.id); Foo(box); // do processing on box. box = getNextRowBox(box); } }