In the commercial macsyma there are commands to save a notebook as a batch file, and to move a batch file into an (unexecuted) notebook for later execution. This is probably solve the problem.. RJF