[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: U2 for date last saved
- Subject: Re: U2 for date last saved
- From: Carl Distefano cld@xxxxxxxx
- Date: Fri, 07 Sep 2007 23:01:43 -0400
Reply to note from Harry Binswanger Fri, 07 Sep
2007 00:55:10 -0400
> Thanks, but I don't want to use DI. I guess I should have given
> more context. ... I imported successfully my Word file into NB.
> Then I realized that the "Last printed" running-header I used
> in Word wouldn't work in NB, so I was looking for a work-around
> *for NB use*.
Harry, you keep changing the rules! Yesterday, it was "the date the
file was last saved"; today it's "last printed". If all you want is
the date and time of printing, simply embed and in your
document, and Done.
But if you really want to embed the date and time of the last
*SAve*, you should note that the AddDI routine I posted yesterday
*works in NB*. Try it. Why make life difficult for yourself by
doing something kludge-y with FILEINFO, when there's a native way to
get what you want, with DocInfo? Since you have to modify your
imported-from-Word file in any event, you might as well enable
DocInfo and embed the VAs I mentioned yesterday: VA ^MD displays the
last-modified date and VA ^MT the last-modified time. It's elegant,
it's easy, and it works.
If you're worried about embedding data after the EOF, don't: you can
remove it at any time with DelDI. AddDI and DelDI are (or
will be, when AddDI is folded into U2) a matched pair that provides
effortless control over DocInfo. Be bold; give them a try.
While we're at it, here's a slightly modified, improved version of
AddDI:
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}GL {>}[cr|lf]{{;5AddDI}} Embed Document Information in exi
sting file [CLD rev.9/7/07][cr|lf]{002}{<}LB{>}{<}IF{<}VA$WS{
{062}}<>1{>}{<}PRNo file{>}{<}EX{>}{<}EI{>}[XH_][BX_]es 1[Q2_][DX
_];*;[cr|lf]{<}SX01,{<}VA$WA{>}{>}{<}IF{<}PV01{>}<1{>}{<}PRNo
window{>}{<}EX{>}{<}EI{>}[BX_]func #{<}PV01{>}[Q2_];*;[cr|lf
][BX_]sa[Q2_]{<}SX01,{<}VAIO{>}{>}{<}SX01,"[BX_]d io="+{<}IS0
1{>}+"[Q2_]"{>}[BX_]d io=1[Q2_];*;[cr|lf]{<}SX02,{<}VA$DT{>}{
{062}}{<}IF{<}PV02{>}<1{>}{<}SX01,100{>}{<}EI{>}[BX_]ne/{<}PV02{>
}[Q2_];*;[cr|lf][AS_][BX_]wait[Q2_]{<}SX02,{<}VA$FP{>}{>}{<}S
X03,{<}CP{>}{>}[BF_][BF_]{<}SX04,{<}CP{>}{>};*;[cr|lf][AS_][B
X_]me {<}PV02{>}[Q2_][BX_]wait[Q2_][BF_][BF_];*;[cr|lf]{<}IF{
<}CP{>}<>{<}PV04{>}{>}{<}PV01{>}{<}PRError while MErging file
- No operation{>}{<}EX{>}{<}EI{>};*;[cr|lf][BX_]ernv {<}PV02
{>}[Q2_][AS_][BX_]ab/nv[Q2_]{<}IF{<}VA$WS{>}<1{>}[BX_]rs[Q2_]
{<}EI{>};*;[cr|lf][BX_]jmp {<}PV03{>}[Q2_][BX_]sa {<}PV02{>}[
Q2_][BX_]wait[Q2_]{<}PV01{>};*;[cr|lf][DO_][FF_]{<}PRDocInfo{032}
added{>}{<}EX{>}{002}[cr|lf][cr|lf]
-nd
XPLeNCODE
--
Carl Distefano
cld@xxxxxxxx