Velocity Reviews > Java > The one pronoun problem

# The one pronoun problem

Roedy Green
Guest
Posts: n/a

 06-26-2005
I was using a program called Goldwave to prepare a library of various
frog croaks. It drove me nearly nuts. To load the source file I had
to navigate through 7 jumps to get to the correct directory. I would
process the file clipping it, then I had to navigate though another 7
directories to get to the target directory to save it. Then back
another seven jumps to get to the directory for another source file.

I know, I could have loaded up more than one at a time, but this is a
general problem, in all computer OSes because the problem is inherited
from the structure of English.

In English there is only one HE pronoun. You can't talk about he1 and
he2. In windows there is only one current directory. There is not a
source and target directory or a dir1, dir2 and dir3 button every
where available to jump directly to some other common place.

In English you can reassign the meaning of HE at any without great
fuss. It should be similarly easy in the OS. You just Right click on
of he the "pronoun" buttons to say -- from now on, this button means
HERE -- this directory, this file, this place in the file, whenever I
left click it, take me here.

This needs to be a function universally supported in the same way in
every application.

I use Slick Edit that lets me roughly approximate this, at least
within the Slick Edit universe. I have some icons on the top bar I
can assign to macros. The problem is, to reassign the meaning of a
key, I have to compose a new macro, and go through a multikeystroke
sequence to assign the macro to the key. But from then on I can hop
from place to place with a single click. What is missing is easy way
to assign a PLACE to a button with a single click.

Perhaps as an addition there could be history of places you visited
(not counting the places you just passed through) so you can point and
click to recently visited other spots.

Why am I telling you this. Perhaps someone might like to write a
simple directory file/browser launcher, copier, deleter, renamer, much
like the old QDOS, that demonstrated the notion, perhaps evolving into
a Magellan-like tool with rapid file viewers. I would be nice to get
back to as good as it was under DOS.

--
Bush crime family lost/embezzled $3 trillion from Pentagon. Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video. http://www.infowars.com/articles/us/...s_rumsfeld.htm Canadian Mind Products, Roedy Green. See http://mindprod.com/iraq.html photos of Bush's war crimes Raymond DeCampo Guest Posts: n/a  06-26-2005 Roedy Green wrote: > I was using a program called Goldwave to prepare a library of various > frog croaks. It drove me nearly nuts. To load the source file I had > to navigate through 7 jumps to get to the correct directory. I would > process the file clipping it, then I had to navigate though another 7 > directories to get to the target directory to save it. Then back > another seven jumps to get to the directory for another source file. > > I know, I could have loaded up more than one at a time, but this is a > general problem, in all computer OSes because the problem is inherited > from the structure of English. > > In English there is only one HE pronoun. You can't talk about he1 and > he2. In windows there is only one current directory. There is not a > source and target directory or a dir1, dir2 and dir3 button every > where available to jump directly to some other common place. > That is not exactly true. In Windows you actually have a current directory per drive and you can put this to good use. E.g., suppose you have an XLST in C:\my\very\log\path\to\xslt and the XML in P:\another\very\long\path\to\my\xml. You can do the following at a command prompt: C:\> cd \my\very\log\path\to\xslt C:\my\very\log\path\to\xslt> P: P:\> cd \another\very\long\path\to\my\xml P:\another\very\long\path\to\my\xml> xalan -IN abc.xml -XSL Cyz.xsl Well, that's just great Ray, you say, if I have 20 partitions on my hard drive. Well, that's where the "subst" command. The subst command allows you to define a particular directory as a drive. E.g., perhaps before you did the above you did C:\> subst P: "C:\Documents and Settings\rgreen\My Documents\result" Then P:\another\very\long\path\to\my\xml is really C:\Documents and Settings\rgreen\My Documents\result\another\very\long\path\to\my\xml. A few other commands you may want to investigate: cd /D, pushd, popd, net use. > In English you can reassign the meaning of HE at any without great > fuss. It should be similarly easy in the OS. You just Right click on > of he the "pronoun" buttons to say -- from now on, this button means > HERE -- this directory, this file, this place in the file, whenever I > left click it, take me here. > > This needs to be a function universally supported in the same way in > every application. > > I use Slick Edit that lets me roughly approximate this, at least > within the Slick Edit universe. I have some icons on the top bar I > can assign to macros. The problem is, to reassign the meaning of a > key, I have to compose a new macro, and go through a multikeystroke > sequence to assign the macro to the key. But from then on I can hop > from place to place with a single click. What is missing is easy way > to assign a PLACE to a button with a single click. > > Perhaps as an addition there could be history of places you visited > (not counting the places you just passed through) so you can point and > click to recently visited other spots. > > > Why am I telling you this. Perhaps someone might like to write a > simple directory file/browser launcher, copier, deleter, renamer, much > like the old QDOS, that demonstrated the notion, perhaps evolving into > a Magellan-like tool with rapid file viewers. I would be nice to get > back to as good as it was under DOS. > HTH, Ray -- XML is the programmer's duct tape. Roedy Green Guest Posts: n/a  06-27-2005 On Sun, 26 Jun 2005 16:54:12 GMT, Raymond DeCampo <(E-Mail Removed)> wrote or quoted : >Well, that's just great Ray, you say, if I have 20 partitions on my hard >drive. Well, that's where the "subst" command. The subst command >allows you to define a particular directory as a drive. E.g., perhaps >before you did the above you did brilliant. I never thought of using subst in a dynamic way. I will have great fun with that. IIRC there is a problem with Windows forgetting SUBST either when you reboot or perhaps start a fresh command processor. -- Bush crime family lost/embezzled$3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

See http://mindprod.com/iraq.html photos of Bush's war crimes

Tim Ward
Guest
Posts: n/a

 06-27-2005
"Roedy Green" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> IIRC there is a problem with Windows forgetting SUBST either when you
> reboot or perhaps start a fresh command processor.

There are other problems with SUBST. For reasons I haven't tried to research
it seems typical of source code control systems that they can't cope with
sets of files on SUBST "drives".

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk

Raymond DeCampo
Guest
Posts: n/a

 06-27-2005
Roedy Green wrote:
> On Sun, 26 Jun 2005 16:54:12 GMT, Raymond DeCampo
> <(E-Mail Removed)> wrote or quoted :
>
>
>>Well, that's just great Ray, you say, if I have 20 partitions on my hard
>>drive. Well, that's where the "subst" command. The subst command
>>allows you to define a particular directory as a drive. E.g., perhaps
>>before you did the above you did

>
>
> brilliant. I never thought of using subst in a dynamic way. I will
> have great fun with that.
>
> IIRC there is a problem with Windows forgetting SUBST either when you
> reboot or perhaps start a fresh command processor.
>

I routinely use it for my "My Documents" directory and I haven't had any
problems, although there are some gotchas. The drive *will* be un-subst
once you log out. To deal with that, just create a batch file that does
the subst commands you want and put a shortcut to it in your Startup folder.

There are some gotchas with subst and mapped drives. Important things
to remember are:
1) Drives are global, however, the mappings only live as long as your
current session
2) If you have scheduled tasks that run when you are not logged in, it
is not enough to run them as yourself to expect the mapped drives to be
there. Running a scheduled task as yourself is not the same as logging
in and then running the task.

HTH,
Ray

--
XML is the programmer's duct tape.

Roedy Green
Guest
Posts: n/a

 06-28-2005
On Mon, 27 Jun 2005 12:32:53 +0100, "Tim Ward" <(E-Mail Removed)>
wrote or quoted :

>There are other problems with SUBST. For reasons I haven't tried to research
>it seems typical of source code control systems that they can't cope with
>sets of files on SUBST "drives".

the other thing is you cant use .. to get to the real super directory.
This confuses the heck out of my custom web building software that is
building cross links all over when you give it filenames of subtrees
that don't hint at the parent.

--
Bush crime family lost/embezzled $3 trillion from Pentagon. Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video. http://www.infowars.com/articles/us/...s_rumsfeld.htm Canadian Mind Products, Roedy Green. See http://mindprod.com/iraq.html photos of Bush's war crimes christopher@dailycrossword.com Guest Posts: n/a  06-29-2005 My graphics editing program keeps separate default directories for save, save as, and save copy as. Also, if you are opening from removable media and remove it, the save defaults to your last save rather than someplace meaningless. In your case, burn the files to a CD, read them all in and pop out the CD, save them wherever windows defaults, and move them all after. -- clh blmblm@myrealbox.com Guest Posts: n/a  07-03-2005 In article <U4Bve.38802$(E-Mail Removed)>,
Raymond DeCampo <(E-Mail Removed)> wrote:
>Roedy Green wrote:
>> I was using a program called Goldwave to prepare a library of various
>> frog croaks. It drove me nearly nuts. To load the source file I had
>> to navigate through 7 jumps to get to the correct directory. I would
>> process the file clipping it, then I had to navigate though another 7
>> directories to get to the target directory to save it. Then back
>> another seven jumps to get to the directory for another source file.
>>
>> I know, I could have loaded up more than one at a time, but this is a
>> general problem, in all computer OSes because the problem is inherited
>> from the structure of English.
>>
>> In English there is only one HE pronoun. You can't talk about he1 and
>> he2. In windows there is only one current directory.

There's a concept of "current directory" in Windows? My experience has
been that too many applications don't give me any choice about the
the same place ("My Computer", or "Personal Documents", or something).
Is there some trick I don't know about that would help ....?

>> There is not a
>> source and target directory or a dir1, dir2 and dir3 button every
>> where available to jump directly to some other common place.
>>

>
>That is not exactly true. In Windows you actually have a current
>directory per drive and you can put this to good use.
>

[ snip ]
>
>A few other commands you may want to investigate: cd /D, pushd, popd,
>net use.

Well! I thought it was only "real shells" (translation: Unix-type
shells) that provided this kind of functionality. Interesting.
Something to remember next time I try to do stuff with Windows.

This probably doesn't help Roedy, but in the Unix CLI world, I suspect
most shells provide a "stack" of recently visited directories and
commands to manipulate them (in bash, pushd and popd are relevant
commands), plus the ability to define and use environment variables
that point to directories -- e.g.,

[ .... navigate to first directory of interest .... ]
HERE=pwd ; export HERE
[ .... navigate to second directory of interest .... ]
THERE=pwd ; export THERE

and then to copy a file from the first to the second directory,
cp $HERE/file$THERE

>> In English you can reassign the meaning of HE at any without great
>> fuss. It should be similarly easy in the OS. You just Right click on
>> of he the "pronoun" buttons to say -- from now on, this button means
>> HERE -- this directory, this file, this place in the file, whenever I
>> left click it, take me here.
>>
>> This needs to be a function universally supported in the same way in
>> every application.
>>
>> I use Slick Edit that lets me roughly approximate this, at least
>> within the Slick Edit universe. I have some icons on the top bar I
>> can assign to macros. The problem is, to reassign the meaning of a
>> key, I have to compose a new macro, and go through a multikeystroke
>> sequence to assign the macro to the key. But from then on I can hop
>> from place to place with a single click. What is missing is easy way
>> to assign a PLACE to a button with a single click.
>>
>> Perhaps as an addition there could be history of places you visited
>> (not counting the places you just passed through) so you can point and
>> click to recently visited other spots.
>>
>>
>> Why am I telling you this. Perhaps someone might like to write a
>> simple directory file/browser launcher, copier, deleter, renamer, much
>> like the old QDOS, that demonstrated the notion, perhaps evolving into
>> a Magellan-like tool with rapid file viewers. I would be nice to get
>> back to as good as it was under DOS.

Hear, hear. Or as good as it is in Unix CLI-land .... Yeah, I'm
biased.

--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.

Andrew Thompson
Guest
Posts: n/a

 07-03-2005
On 3 Jul 2005 09:36:56 GMT, http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

>>Roedy Green wrote:
>>> ..In windows there is only one current directory.

>
> There's a concept of "current directory" in Windows?

System.getProperty("user.dir")

> Is there some trick I don't know about that would help ....?

JFileChooser(File)/FileDialog.setDirectory(File)

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane

blmblm@myrealbox.com
Guest
Posts: n/a

 07-03-2005
In article <(E-Mail Removed)>,
Andrew Thompson <(E-Mail Removed)> wrote:
>On 3 Jul 2005 09:36:56 GMT, (E-Mail Removed) wrote:
>
>>>Roedy Green wrote:
>>>> ..In windows there is only one current directory.

>>
>> There's a concept of "current directory" in Windows?

>
>System.getProperty("user.dir")
>
>> Is there some trick I don't know about that would help ....?

>
>JFileChooser(File)/FileDialog.setDirectory(File)
>
>HTH

Sounds very useful if one is writing Java code to run under Windows,
but I was asking more in reference to using existing applications
(e.g., MS Office). I'm guessing that some of them do have some notion
of "current directory" that can maybe be changed via a command-line
parameter, but the whole notion of "current directory" seems to be
sort of alien to the GUI way of doing things. IMO, of course.

--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.