MathGroup Archive 2005

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

Search the Archive

Re: Testing whether code is run in batch mode


Hi,

try $FrontEnd===Null

or !TrueQ[$Notebooks]

Regards
  Jens

"Marcus Stollsteimer" <marcus314 at yahoo.com> 
schrieb im Newsbeitrag 
news:dk1jlm$9mb$1 at smc.vnet.net...
| Hi group,
|
| is there a builtin function or variable that 
tests if a calculation is
| done in the Front End or in batch mode?
|
| right now I use as a workaround
|
|  BatchQ = Notebooks[] === $Failed;
|
| Regards,
| Marcus
|
|
| -- 
| [...] which will be published posthumously or 
after his death,
| which ever comes first. -- W. Allen
| 



  • Prev by Date: Re: A Problem with the NonlinearFit?
  • Next by Date: Re: Question regarding Mathematica's treatment of whitespace
  • Previous by thread: Re: A Problem with the NonlinearFit?
  • Next by thread: Re: Testing whether code is run in batch mode