> From: bill lam
> But by adding an '&' such that
>
> hostcmd=: [: 2!:0 '(' , ,&' || true)&'
>
> then it works, but I only tested in jconsole not jwd
>
> Since wd is not available for jconsole, it could be
>
> if. VISIBLE *. 0 = 4!:0 <'PDFREADER_j_' do.
> if. #PDFREADER_j_ do.
> if. IFUNIX*.JCONSOLE do.
> hostcmd (dquote PDFREADER_j_),' ',dquote file
> else.
> wd 'winexec *',PDFREADER_j_,' ',dquote file
> end.
> end.
> end.
> )
Looks OK to me although it should be IFUNIX*.IFCONSOLE
Personally I don't think I'll want pdf previews when running jconsole, but
that's just me and as long as PDFREADER_j_ isn't set (which it isn't by default
in a jconsole session) then it shouldn't change the current behaviour.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm