Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: Re: Font Problem with Mathematica v3.0
  • Next by Date: Integrating piecewise functions
  • Previous by thread: automated notebook creation?
  • Next by thread: wierd Log[0] *0 result