I wanna Open, Evaluate and Close notebooks sequentially.
Code from question here
nb1 = NotebookOpen["/Users/you/Documents/1.nb"]; SelectionMove[nb1, All, Notebook] SelectionEvaluate[nb1] nb2 = NotebookOpen["/Users/you/Documents/2.nb"]; SelectionMove[nb2, All, Notebook] SelectionEvaluate[nb2]
nearly works, but opens notebooks simultaneously at first.
How to do it so notebook1 Opens, Evaluates and Closes, and then notebook2 does the same, notebook 3 and so on...?