[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

RE Await file U2 routine



The point is moot now, since I got it working, but I'm sending all five
versions, because there are some other odd results. I know ldprn and
unload are Xy III and deprecated now, but I was just using them
temporarily to test the general procedure, before tackling the PP routine
part.

With the versions that lack a specified file name, I have a sample file
that I was using.

You're absolutely right about temp.txt. I am always careful not to save
anything by that name, so that it's always available for quick and dirty
routines or debugging. But when I hope, as I do, to eventually post
something that others might want to use, I must avoid it.

initial version (not really, but has the plain name, as opposed to
awftest#.pgm):
XPLeNCODE v2.0
b-gin [UNTITLED]
[BC_]save[XC_]{<}SX50,{<}VA$FP{>}{>}[JM_]2.GetPath[Q2_]{<}SV0
2,.{>}{<}XS51,02,03,04,05{>}{<}SX01,{<}IS50{>}{>}[BC_]ldprn p
ost47.prn[XC_][BC_]printf ,c:\gs\gs8.14\lib\{<}PV03{>}.ps[XC_
][BC_]wait[XC_][BC_]unload post47.prn[XC_]
-nd
XPLeNCODE
Runs OK

Version 2:
XPLeNCODE v2.0
b-gin [UNTITLED]
[BC_]ldprn d:post47.prn[XC_][BC_]printf ,fo.tmp[XC_][BX_]wait
[Q2_][BC_]unload d:post47.prn[XC_][JM_]2.Errcode[Q2_]
-nd
XPLeNCODE
Yields error 10 cannot find item.

Version 3:
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX50,"c:\gs\gs8.14\lib\sample.ps"{>}[BC_]ldprn d:post47.pr
n[XC_][BC_]printf ,{<}PV50{>}[XC_][JM_]2.AwaitFile [Q2_]
-nd
XPLeNCODE
Yields Application error, then Printing Done

Version 4:
XPLeNCODE v2.0
b-gin [UNTITLED]
[BC_]ldprn d:post47.prn[XC_][BC_]printf ,fo.tmp[XC_][BX_]wait
[Q2_]
-nd
XPLeNCODE
_Twice_ says Filename already exists, Overwrite it? I answer Y both
times, and it completes OK otherwise.

Version 5:
XPLeNCODE v2.0
b-gin [UNTITLED]
[BC_]ldprn d:post47.prn[XC_][BC_]printf ,fo.tmp[XC_][BC_]unlo
ad d:post47.prn[XC_]
-nd
XPLeNCODE
Runs OK, finishes with Printing done message.

Thank you for spending all this time on this. Note that all this was done
before I got your last post with the many ways of doing things, which I
will study most thoroughly.

Patricia