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

Re: saving to alternative disk directory




okay, Carl --
1) I haven't done much XPLdecoding, so it might be user error, however this section

{<}EI{>}{<}EI{>}{<}EI{>}

seems to decode an entry

≪EI{>}≫ (faux chevrons)
that gives a "Formatting command not recognized" in non-expanded view. so, I haven't tried it yet. or do I not need to worry?
2) if I understand correctly, this will save all open files to the
backup directory, however that is something I would only do from time to
time -- eg if I wanted to put the files on the SD card to take with me
to work with on the laptop. however, normally, I'd want to simply
double-save the current file, which is why I suggested an option --
along the lines of SA /NV /ALL though I understand that's not really
either a XyWrite or XYWWWEB syntactic possibility.

-rafe

Carl Distefano wrote:
Reply to note from Raphael Tennenbaum  Sun,
08 Nov 2009 14:09:46 -0500

Rafe:
no matter, I guess, since of course, XYWWWEB has SaveTo, which
I'm now using contentedly

Ah, I'd forgotten about Robert's SAVETO. It's a gem. Simplicity
itself, if you know some XPL. And you don't need to know much; you
can just copy one or more of the examples from the Help frame into
REG, and mark them up as needed.
just out of curiosity, is there an option which would work like
func SL (save all open files) -- allowing the user to *back up*
all open files to the alternative directory with one keystroke?

Sure, if you feed the right code to SAVETO. Here's an example that
SAves all open files (except bracketed filenames, including
[UNTITLED] files) and backs them up to your W:\XYBAX directory. To
try it, copy the entire block of code below to XYWWWEB.REG *in place
of* your current SAVETO entries. To change the backup directory,
edit the first line only; leave the rest as is.

XPLeNCODE v2.0
b-gin [UNTITLED]
SAveTo.1={<}SV01,w:\xybax{>}[cr|lf]SAveTo.2={<}IF"\?"{238}({<
}IS01{>}+"?")<0{>}{<}SX01,{<}IS01{>}+"\"{>}{<}EI{>}[BX_]exist
 {<}PV01{>}*.*[Q2_]{<}IF{<}ER{>}{>}{<}SV01,{>}{<}EI{>}[cr|lf]
SAveTo.3=[BX_]es 1[Q2_]{<}SX02,{<}VA$WN{>}{>}[DX_]{<}LBa{>}{<
}IF{<}VA$WS{>}==1&{<}VA$MO{>}>0{>}[BX_]sa[Q2_][cr|lf]SAveTo.4
={<}IF{<}VA|01{>}>0{>}{<}SX03,{<}VA$FI{>}{>}{<}IF"]"{238}{<}I
S03{>}<0{>}[BX_]sa/nv {<}PV01{>}{<}PV03{>}[Q2_]{<}EI{>}{<}EI{
{062}}{<}EI{>}[cr|lf]SAveTo.5=[NX_]{<}IF{<}VA$WN{>}<>{<}PV02{>}{>
}{<}GLa{>}{<}EI{>}{<}PRSAved all open files and backed up to{032}
@01{>}[cr|lf]
-nd
XPLeNCODE

Usage (as per the Help frame):
CMline:  SAVETO
KBD file: Assign nn=NOXHJM2,.,S,A,v,e,T,o,Q2 to Save key