Re: button to read in an external file
- To: mathgroup at smc.vnet.net
- Subject: [mg15203] Re: button to read in an external file
- From: Rolf Mertig <rolf at mertig.com>
- Date: Tue, 22 Dec 1998 04:01:35 -0500
- Organization: Mertig Research & Consulting
- References: <75a0bf$rta@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Gerd Klintschar wrote:
>
> Hello everybody,
>
> sorry if that is a stupid question but I am really a newby:
>
> I would like to generate a button in the Math Frontend that makes an
> external file to be read (i.e. "C:\junk"). I could not figure that out
> with the online help.
>
> Please, can some good soul give me a hint?
>
> thx very much
>
> Gerd
Evaluate the following in a single cell:
Button["<</tmp/junk", ButtonFunction :> << "/tmp/junk",
ButtonEvaluator -> Automatic]
SelectionMove[InputNotebook[], Previous, Cell];
FrontEndExecute[{FrontEnd`FrontEndToken[InputNotebook[],
"GeneratePalette"]}]
--
Rolf Mertig
Mertig Research & Consulting
Mathematica training and programming Development and distribution of
FeynCalc http://www.mertig.com