Re: Batch evaluation of multiple notebooks?
- To: mathgroup at smc.vnet.net
- Subject: [mg69310] Re: Batch evaluation of multiple notebooks?
- From: p-valko at tamu.edu
- Date: Wed, 6 Sep 2006 04:28:35 -0400 (EDT)
- References: <email@example.com>
- Sender: owner-wri-mathgroup at wolfram.com
You may wish to put a NotebookSave before you close it, otherwise you will never have enough time to see the results. Blackadder wrote: > Hi all, > > over the last ten hours I've been trying to solve a problem that seemed > simple at first. I have several dozen notebooks, each with nearly > identical contents. The only differences between the notebooks are the > data values comprised in certain data lists within each notebook. What > I need to do now is to evaluate all notebooks. > > I've tried to accomplish this via a "master" notebook that contains a > list of the names of all notebooks to be evaluated. The master notebook > processes the list of file names in a for loop and utilizes the > standard notebook manipulation functions, e.g. NotebookOpen, > SelectionMove, SelectionEvaluate, and finally NotebookClose. > > The problem here is that the Mathematica front end does not wait for > the kernel to finish evaluation and vice versa. This regularly results > in NotebookClose being called for the opened notebook before this > notebook has fully evaluated. > > My question is: How can I batch evaluate an arbitrary number of > notebooks without using MathLink? Is this even possible? > > Bye, Malte.