Re: batch mode and front end
- To: mathgroup at smc.vnet.net
- Subject: [mg33124] Re: batch mode and front end
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 4 Mar 2002 06:03:59 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <a5nq8g$r7u$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
you can launch the frontend as MathLink child from the kernel.
lnk = LinkLaunch["C:\Program Files\Wolfram
Research\Mathematica\4.0\Mathematica.exe -mathlink"]
<<PSDirect.m
Block[{$FrontEnd = FrontEndObject[lnk]},
HTMLSave["index.html","source.nb"]
]
Regards
Jens
Alexander Dreyer wrote:
>
> Hello,
> using HTMLSave I want to convert several notebooks to html-files.
> Everything works fine, but now I want to start the HTMLSave command from
> a batch. It is impossible to do this by the standalone Mathematica
> kernel, since HTMLSave needs the front end for this conversion. Does
> anyone know how to start the front end from batch mode to execute one
> single cell?
>
> Thank you very much
> Alexander Dreyer
> --
> / Alexander Dreyer, Dipl.-Math. - Abteilung Adaptive Systeme \
> / Fraunhofer Institut fuer Techno- und Wirtschaftsmathematik (ITWM) \
> \ Gottlieb-Daimler-Strasse, Geb. 7^2=49/302 D-67663 Kaiserslautern /
> \ http://www.itwm.fhg.de Tel.:(0631)205-4472 Fax:(0631)205-4139 /