Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Thanks for bearing with me; will do that. Now I'm able to pick up the loose ends from two years ago ... I simply like working inside JConsole. Martin At 2014-04-02 00:01, you wrote: you can define your own version of viewpdf_j_ in ~config/startup.ijs 02.04.2014, в 1:27, Martin Kreuzer наÐ

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
you can define your own version of viewpdf_j_ in ~config/startup.ijs 02.04.2014, в 1:27, Martin Kreuzer написал(а): > Thanks Bill - > > Changed line (in "else" section) to > - >r=. ShellExecute 0;(uucp 'open');(uucp PDFReader);(uucp ParamRES, dquote > cmd);NULL;SW_SHOWNORMAL > - >

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Thanks Bill - Changed line (in "else" section) to - r=. ShellExecute 0;(uucp 'open');(uucp PDFReader);(uucp ParamRES, dquote cmd);NULL;SW_SHOWNORMAL - which did the job. I'm not that familiar with ShellExecuteW as I haven't done any Win API programming at all. Q: What would be t

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
untested but you may try something like this. change in line (1) may not be needed. dquote in (2) should be kept. (1) cmd=. '\' (I. cmd='/') } cmd if. -.fexist cmd do. EMPTY return. end. if. 0 = #PDFReader do. NB. checking for empty string r=. ShellExecute 0;(uucp 'open');(uucp cmd

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
This is how far I got: Found "viewpdf "definition in stdlib.ijs alright. Relevant section is short of line 1900. Managed to get in local var ParamRES=. ' -e ' . Changed this line - r=. ShellExecute 0;(uucp 'open');(uucp PDFReader);(uucp dquote cmd);NULL;SW_SHOWNORMAL - to - r=.

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
default to ~temp/plot.pdf should be correct. it calls this viewpdf_j_ jpath '~temp/plot.pdf' typing in jconsole viewpdf_j_ will give its definition and you can see why it failed with a "-e" paramenter because there is no such file with a name " -e" you may modify viewpdf_j_ until it wor

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Chris, you are right about that; I was able to confirm it using XP's Virtual DOS Console. (Nice time saving option, by the way.) That still leaves the question: Where is the path-to-pdf-file filled in..? For plot isn't following the ~temp path correctly - jpath '~temp' f:/documents and s

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread chris burke
I think -e used to mean "reuse any existing gsview session". On Tue, Apr 1, 2014 at 3:37 PM, Martin Kreuzer wrote: > Bill, you are right on both counts: > [1] double quotes not necessary (single quotes already taking care of the > blanks within path). > [2] "-e" obviously causing the error; plo

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Bill, you are right on both counts: [1] double quotes not necessary (single quotes already taking care of the blanks within path). [2] "-e" obviously causing the error; plot working like a charm without it. Don't know anything about this parameter; found it there in base.cfg ... Thanks, Martin

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
I guess the double quotes are not needed but it may be the "-e" that caused error. What is this "-e"? Can it be omitted? If not, try another app such as acrobat reader. On Tue, Apr 1, 2014 at 3:00 PM, Martin Kreuzer wrote: > When adding a pair of double quotes I get: > > - >] v=. 5 % ~ i:

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
When adding a pair of double quotes I get: - ] v=. 5 % ~ i: 5 _1 _0.8 _0.6 _0.4 _0.2 0 0.2 0.4 0.6 0.8 1 load 'plot' plot v; v view pdf error:"d:/program files/ghostgum/gsview/gsview32.exe" -e f:/documents a nd settings/admin/j701-user/temp/plot.pdf The system cannot find the file

Re: [Jprogramming] jcon: simple plot issue

2014-03-31 Thread chris burke
> It looks to me as if there are quotes missing so that both paths aren't interpreted correctly. OK, what happens when you put the paths in quotes? Chris On Tue, Apr 1, 2014 at 2:18 PM, Martin Kreuzer wrote: > Greetings - > > Beg your pardon in case I didn't search thorougly enough. > > This

[Jprogramming] jcon: simple plot issue

2014-03-31 Thread Martin Kreuzer
Greetings - Beg your pardon in case I didn't search thorougly enough. This is a from a J7 installation on a WinXP machine: - ]v=. 5%~ i: 5 _1 _0.8 _0.6 _0.4 _0.2 0 0.2 0.4 0.6 0.8 1 load 'plot' plot v; v view pdf error:d:/program files/ghostgum/gsview/gsview32.exe -e f:/documents