|
[Date Index]
[Thread Index]
[Author Index]
Re: Automatic execution of a notebook
- To: mathgroup at smc.vnet.net
- Subject: [mg44001] Re: [mg43762] Automatic execution of a notebook
- From: Omega Consulting <info at omegaconsultinggroup.com>
- Date: Fri, 17 Oct 2003 05:14:26 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
At 01:28 AM 10/3/2003, craig beckett wrote:
>We have started the mathematica FrontEnd with a selected notebook
>using a visual basic shell command but the notebook is not executed
>until the user takes some action. We would like to know how to start
>mathematica and have it automatically evaluate the notebook without
>user intervention.
With a couple of settings it is possible.
1) Take the notebook and make all the cells you want to evaluate into
initialization cells. (In the Option Inspector, scope=selection
InitializationCell->True.)
2) Make the notebook evaluate it's init cells when opened. (In the OI,
scope=notebook, InitializationCellEvaluation->True)
3) Set your copy of Mathematica to not ask about evaluating init cells. (In
the OI, scope=global, InitializationCellWarning->False.)
With these settings, any notebook that has
InitializationCellEvaluation->True will evaluate upon opening. Given some
of the commands available to Mathematica (DeleteFile, Run, not to mention
J/Link) this could be quite risky.
--------------------------------------------------------------
Omega Consulting
"The final answer to your Mathematica needs"
http://omegaconsultinggroup.com
Prev by Date:
LinearSolve - consumption time for square and rectangular matrices
Next by Date:
Re: Re: M5.0 keyboard shortcuts with linux
Previous by thread:
Re: Automatic execution of a notebook
Next by thread:
simple vactor magitude question
|