How to run/call a Mathematica Notebook from another Notebook ?
say, I want Notebook A and B to be executed and then Notebook C. How do
I run/call Notebooks A and B from C ?
Regards,
Prashanth
nb= NotebookOpen["C:\\Program Files\\Wolfram
Research\\Mathematica\\5.2\\AddOns\\Applications\\WebServices\\Examples\\WolframWebSearch.nb"];
SelectionMove[ nb, All, Notebook]
SelectionEvaluate[nb]
NotebookClose[nb]
Check section 2.11.3 "Manipulating Notebooks from the Kernel" of _The
Mathematica Book_,
http://documents.wolfram.com/mathematica/book/section-2.11.3
HTH,
Jean-Marc
the classic way is to mark *all* input in notebook A and B
as initialization, when you save the notebooks, the FrontEnd will
ask you to generate a *Package* from the initialization cells
and you should say "yes". Now you can call
Get["A.m"];
Get["B.m"]
in notebook C and you are done ...
Regards
Jens