Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

open, evaluate, and save a set of worksheets in a single notebook

I have a notebook with 25+ worksheets which calculate parameters for shaped NMR pulses. I use an attached .sage file which does most of the calculation. I have updated the .sage file and would like to update the calculations for each worksheet. I would like to automate the following:

  1. Open a worksheet
  2. Delete all output
  3. Evaluate all cells
  4. Save the worksheet
  5. Close the worksheet

From looking through the documentation it is not how to do this or if it is possible. Any advice on how to do this would greatly appreciated.