Re: automated notebook creation?
- To: mathgroup at smc.vnet.net
- Subject: [mg9094] Re: [mg9036] automated notebook creation?
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Mon, 13 Oct 1997 23:33:10 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Bob Young <ryoung at SciComp.com> [mg9036] automated notebook creation? writes > I need to automate construction of a notebook. The code to do it > is simple, but I need to find a way to execute the code with no > human action. Bob: I'm not exactly sure what you want but here are some steps that could be embedded in some code - maybe in a button function: notebookMake:=If[a==1, nb=NotebookPut[Notebook[{Cell["Made it!", "Title"]}]]] a=1; notebookMake; NotebookFind[nb,"!"]; SelectionMove[nb, After, Word] NotebookWrite[nb," Hurrah!", After] NotebookClose[nb] Allan Hayes hay at haystack.demon.co.uk http://www.haystack.demon.co.uk/training.html voice:+44 (0)116 2714198 fax: +44 (0)116 2718642 Leicester, UK