how to copy and move files with wily?

  • From: Tommy Pettersson <ptp@xxxxxxxxxxxxxx>
  • To: wilyfans@xxxxxxxxxxxxx
  • Date: Wed, 19 Jan 2005 20:40:50 +0100


I wanted to write two scripts named cpto and mvto to have in
directory tags, so I could select a file in another directory
and B2B1 on mvto/cpto in the target directory's tag to move (or
copy) the file to this directory.  cpto and mvto would behave
like "local" commands, like Look, Put, Get, Undo and Redo.

The needed information about the command window's label is not
available in the environment of the scripts, but that could
be creeped into the code by passing along an extra argument
to run() &co.  It would generally enhance the capability of
external scripts, since they could get two path arguments
from the pointer interface alone.

Does it sound favourable, or is there already a better way
to move and copy files with wily?

Tommy Pettersson <ptp@xxxxxxxxxxxxxx>

Other related posts: