Re: Executing a notebook repeatedly from a script
- To: mathgroup at smc.vnet.net
- Subject: [mg26025] Re: Executing a notebook repeatedly from a script
- From: Albert Retey <albert.retey at visualanalysis.com>
- Date: Fri, 17 Nov 2000 04:07:37 -0500 (EST)
- Organization: Visual Analysis
- References: <8uqutr$qpf@smc.vnet.net> <uBKQ5.1274$b16.93508@ralph.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, > You can write a notanotebook.m file and do all your commands with > > math < notanotebook.m > /dev/nul Of course using commands of this in a shellscript or batchfile would be the recommended way of non-interactive use. But if you really think that changing the notebook to a *.m file is too much trouble (if you are not doing things that need the frontend, it should be easy by Edit->Save Selection As->Package Format) or if you are using a Mac (where I think is no possibility to use a command line in the above way??), there is also the possibility to achieve what you want by programming the Frontend. Have a look at the corresponding documentation, which unfortunatly is rather poor (NotebookLocate, FrontendExecute, SelectionEvaluate and such, the book by Glynn and Gray might be a good source of information). Anyway, if you are not experienced with these things, I doubt this is less complicated than changing the notebook to something that can be used in the way Jens-Peer recommended... Albert