On Tue, Apr 19, 2011 at 8:11 AM, Ian Clark <[email protected]> wrote:
> It needs an explicit File > Save to save its contents. I would like to
> do this automatically inside ijsstr. But when I add a further line
> like this:
>
> ijsstr=: 3 : 0
>        NB. Open a new IJS window with: (str)y
> cocurrent 'jijs'
> newijs''        NB. create a new IJS window
> wd 'set e *',,y NB. and fill it with the text in y
> save 2          NB. just guessing at: y=2
> )
>
> it fails because necessary globals aren't set up, notably SMHWNDP.

I am getting:

   newijs_jijs_''
   save_jijs_ ".>{:conl 1
|domain error: wd
|   dat=.    wd'qd'

That fails for me, but I think this does what you want:

   n=: {:conl 1
   save__n ''

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to