[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: New kid -Reply
- Subject: Re: New kid -Reply
- From: "..." adpf@xxxxxxxx
- Date: Tue, 7 Jan 1997 16:01:40 -0500 (EST)
Hi, Mark, and welcome. Yes, well, you need to use some ingenuity to get
these little niceties in xyWrite 3, but bless XyQuest for putting in the
right tools. Here's some xpl, namely !SESAME, that lets you know if a
file you've just opened is already open in another window and does some
other stuff too.
Needs a dedicated key ...
nn=BC,r,u,n, ,!,s,e,s,a,m,e, ,XC
... and works from a dir list. Point to a dir or file and hit the key:
!SESAME lists the directory or opens the file. After opening a file it
cycles through open windows and if it finds the same file in one it stops
and alerts you, then continues through the cycle, ending up with an exit
at the just-opened file. If the file is already open in another window,
what to do then is up to you. If !SESAME has listed an adjacent dir,
it then gives you the option of cd'ing to it. !SESAME opens files
with extensions like .COM, .EXE, .ZIP, etc. as read-only. Hitting
- [minus/hyphen] aborts, hitting + releases read-only mode, hitting
Del puts ernv [file name] on the CMline; execute or not, then abort.
Actually, the dup? code is quite simple:
{sx86,{va$nw}}BC d nw=0 XC BC {sx53,{va$wn}}{sx13,{va$fp}}{lb
}{lb.}AS {sx54,{va$wn}}{lb
}{if{pv53}=={pv54}}BC d nw={pv86} XC BC GT {ex}
{ei}{if{is13}==({va$fp})}{lb
}{PRthis file is already open elsewhere !!! }{rc}{ei}{gl.}
Hope this helps. ... Ciao. --a
!SESAME.UUE =================================================
section 1 of 1 of file !sesame.zip < uuencode 95 (v40) by R.E.M. >
begin 644 !sesame.zip
M4$L#!!0````(`#J")R*54NI`7P,``,P&```'````(5-%4T%-1;54S7(2611>
M3D4K"ZNF9F%9Q64F(@C!;J`#42`)@?R85ABB2.)HY.>&=-D2I`D0-1;M&_@,
MELOIN\@KS&864_,FSLQJ%E,UUW/N;1JB<:=5%/>GSSG?=\[]SN&VS[&&J86(
MTZ_-#2S&'&/?Z?13"RRMLJ;1=>B0.=28NHXQJS:^I4T^&O#1";_$YBG>`_4A"59DBR!DQ:/P!<=0=5X
M).AT&RR$_(++1YUN$.BI<18*(4\MSC*9>$`2SZ8E#B>`BU1EG7:=>@83[
M!^D"24(NU/LNBL_W%;AA\6$4ICU@ELU4J@6".Z!(EDMWA%[8$YV
M-TMRGXB0O*Z3SRJ;5?P3$MY9^_2+!
M;^_<_5;PVR7=@]_02Q[\JGN/\&O%KPDNA>AISI5C>R#?F[0'&44^'WP$)J)5
MVLP5$9[V.W`RZU&(L84VB8F-Z!LA)EP3DY#3^D5Q3C6:2".3";JA0:&E^E/]-"$A^9YC(X9
M&J*'3[[??/C_E=QJOK"VOK%Y>TN_<[=8^KF\?>]^Y4%U9U=18_&$MI!,+?J7
MHC=O17[+[#VY]F/@^NOEG^:N/K[QZI=T]N&C8.CER7\__/WO]Z?D"H\I/)9W
M9<+M/X`&MW\'>MS^B[]YR^WWW'X'R5V:O3!^&U'),"Q`7RR:6*#P;#)!48
M?6.">@Y*CO61R8:RBA"9[#QQ-:\B-EIYH],=N:,!N`]=$:!9J7SXE&'W7/X(
M4$L!`A0`%`````@`.H(G(I52ZD!?`P``S`8```<````````````@````````
>`"%315-!34502P4&``````$``0`U````A`,`````
`
end
sum -r/size 39633/1372 section (from "begin" to "end")
sum -r/size 31886/975 entire input file
============================= adpFisher nyc