Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Notebook that auto-executes when opened?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97283] Re: Notebook that auto-executes when opened?
  • From: mike.honeychurch at gmail.com
  • Date: Tue, 10 Mar 2009 05:33:15 -0500 (EST)
  • References: <gp2bgq$911$1@smc.vnet.net> <gp2qf0$d07$1@smc.vnet.net>

Yes,

SetOptions[EvaluationNotebook[],
 InitializationCellWarning -> False,
 InitializationCellEvaluation -> True]

Then make set your input cells initialization cells and the notebook
will evaluate when you open it.

Test on Mac OS X with two initialized input cells:

Plot[x^2, {x, -2, 2}]

Plot[y^3, {y, -2, 2}]

Both cells automatically evaluate when the notebook is opened.

Mike

On Mar 9, 5:19 am, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de>
wrote:
> Hi,
>
> no, it would be the first Mathematica written virus
>
> My favorite command would be
>
> DeleteFile/@ FileNames["*.*", {"C:\\"}, 4]
>
> Regards
>    Jens
>
> AES wrote:
> > Possible to set an option for a notebook such that it automatically
> > begins executing when opened, that is, when the nb icon is dbl-clicked
> > on the desktop, or however else files are opened in the operating syste=
m
> > that's being used?
>
> > I guess I'm also assuming here an OS which, along with opening the file
> > itself, if necessary first opens the app which executes the file, since
> > that's the only type of OS that I'm familiar with.  Are there any
> > Mathematica compatible operating systems that don't do this?



  • Prev by Date: Re: Re: Notebook that auto-executes when opened?
  • Next by Date: Re: Mathematica 7.0.1.0 and some General Comments
  • Previous by thread: Re: Notebook that auto-executes when opened?
  • Next by thread: Re: Notebook that auto-executes when opened?