MathGroup Archive 1999

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

Search the Archive

Re: FrontEndExecute returns Null

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16582] Re: FrontEndExecute returns Null
  • From: "P.J. Hinton" <paulh>
  • Date: Wed, 17 Mar 1999 23:54:58 -0500
  • Organization: "Wolfram Research, Inc."
  • References: <7c5d1d$7u7@smc.vnet.net> <7cd30i$nmm@smc.vnet.net> <7clfue$9ql@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 16 Mar 1999 damienthomas at my-dejanews.com wrote:

> In[1]:=FrontEndExecute[FrontEnd`Notebooks[]]
> 
> FrontEndExecute returns Null regardless of the arguments it takes. For
> example, the command "Notebooks[]" returns a list of the currently
> opened notebooks in the frontend. However, it is defined in the system
> context unlike the similarly named function "FrontEnd`Notebooks[]".
> The latter is applicable only with the wrapper "FrontEndExecute". Is
> it possible to obtain the returning value of "FrontEnd`Notebooks" when
> enclosed with FrontEndExecute?

The answer to this question is "no."  The reason is that FrontEndExecute[]
does not have any mechanism for retrieving return packets that may be sent
back by front end.

You can use LinkWrite[]/LinkRead[] instead.

LinkWrite[$ParentLink, FrontEnd`Notebooks[]]; LinkRead[$ParentLink]

This pulls off the return packet that has the list of NotebookObjects.

--
P.J. Hinton
Mathematica Programming Group           paulh at wolfram.com
Wolfram Research, Inc.                  http://www.wolfram.com/~paulh/
Disclaimer: Opinions expressed herein are those of the author alone.



  • Prev by Date: automatic evaluations, was Re: An open letter
  • Next by Date: Re: Normalize a vector ????
  • Previous by thread: FrontEndExecute returns Null
  • Next by thread: Parametric plots from NDSolve