[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Autosave [was Switches]
- Subject: Re: Autosave [was Switches]
- From: cld@xxxxxxxx (Carl Distefano)
- Date: Sun, 4 Nov 2001 01:49:20 -0500 (EST)
Reply to note from "Ambos, Paul" Sun, 4 Nov 2001
00:50:26 -0500
>> . . . . DOS/NV suppresses the prompt "Suspending XYWRITE--
>> save files to AUTOSAV.TMP files? (Y/N)" before shelling to DOS.
> . . .
>
> Is there any function call that will get one to this prompt (or
> otherwise force an autosave for all open files) other than
> trying to shell to DOS?
Interesting question. Funcs SF and SL will store and save,
respectively, all open files using the *original* filenames. I don't
know of any function, other than the DOS command, that will force a
save as AUTOSAV.TMP files, but a few lines of XPL will do it handily:
{{5autosave}} Save all open files to AUTOSAV.TMP files [CLD]
{2}DX >>;*;
AUTOSAV>.TMPQ2 BX waitQ2 >;*;
==1>NX (<>)>;*;
{2}
To use the above pseudo code, change "<" and ">" to open and close
guillemets, "DX ", "BX ", "Q2 ", and "NX " to real embedded
funcs
(using the PFUN command), "(<>)" to less-than and greater-than signs
(minus the parens), and "{2}" to Ascii-2 smiley-face characters. Or
simply issue DECODE to decode the following:
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}GLa{>}[cr|lf]{{;5autosave}} Save all open files to AUTOSAV
{46}TMP files [CLD][cr|lf]{2}{<}LBa{>}[DX_]{<}PRWorking{>}{<}SX0
1,{<}VADR{>}{>}{<}SX02,{<}VA$WN{>}{>};*;[cr|lf]{<}SU03,[BX_]s
a/nv {<}PV01{>}AUTOSAV{<}SX04,{<}VA$WN{>}{>}{<}PV04{>}.TMP[Q2
_][BX_]wait[Q2_]{>};*;[cr|lf]{<}LBb{>}{<}IF{<}VA$WS{>}==1{>}{
<}GT03{>}{<}EI{>}[NX_]{<}IF{<}VA$WN{>}<>{<}PV02{>}{>}{<}GLb{>
}{<}EI{>};*;[cr|lf]{<}PRAll open files saved to AUTOSAV.TMP f
iles{>}{<}EX{>}{2}[cr|lf][cr|lf]
-nd
XPLeNCODE
You can plug this frame into U2 and issue AUTOSAVE from the
CMline, or assign the U2 routine to a key with:
nn=NOXHJM2,.,a,u,t,o,s,a,v,e,Q2
--
Carl Distefano
cld@xxxxxxxx
http://users.datarealm.com/xywwweb/