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
наÐ
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
> -
>
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
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
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=.
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
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
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
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
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:
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
> 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
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
13 matches
Mail list logo