home *** CD-ROM | disk | FTP | other *** search
-
- __________________
-
- FileAct user guide
- __________________
-
-
- User, please note
- =================
-
- FileAct is Freeware, i.e. it is free software.
-
- Copyright notice
- ================
-
- The copyright (c) of this program belongs to John Kortink. All rights are
- reserved.
-
- You may not change this program (except for documented configuration
- changes). You may not use any part of this program in any other program or
- product without my written approval. You may spread this program freely, but
- only in complete and unchanged form, and only against bare distribution costs
- (if any). This program is provided 'as is'. No fitness of this program for
- any particular purpose is implied. Using this program is entirely at your own
- risk.
-
-
- //
- //
- // Introduction
- //
- //
-
- FileAct can perform freely programmable operations on multiple files and/or
- directories, which takes the chore out of many common tasks. In addition,
- FileAct can be used to detect specific keypresses, and execute corresponding
- code (enabling keypress application launches, keypress execution of common
- OSCLI commands, etc..).
-
- The operation to perform on the target objects (i.e. a set of files and/or
- directories) is defined by an OSCLI-type command line which is executed using
- Wimp_StartTask (which enables an external program to be invoked if needed).
- The command line definition may contain 'variables', which are replaced by
- (parts of) the object's full pathname before execution of the command line.
- For example, something like 'strip off the last two characters of the object
- pathname' may be specified by 'Rename %f %p.%L001-02' (for an explanation,
- see below). The full pathname of the target object is also available
- seperately as the value of a system variable.
-
- An operation may be invoked by :
-
- - Dragging a set of objects to a command line definition icon.
- - Dragging a set of objects to the icon bar icon.
- - Double-clicking on an object while holding down an Alt or Ctrl key.
-
-
- //
- //
- // Using FileAct
- //
- //
-
- On FileAct's iconbar menu the usual 'Info' and 'Quit' icons can be found. In
- addition, 'Control' gives access to the 'FileAct control' window (click on
- 'Control' to make the window permanent) and 'Status' gives access to the
- 'Status' menu. The 'FileAct control' window and the 'Status' menu are
- described below.
-
-
- //
- //
- // The 'FileAct control' window
- //
- //
-
- In this window, you will find two parts, called 'Actions' and 'Options'.
-
- The 'Actions' part has two subparts : three columns of radio icons (headed by
- 'Bar', 'Alt' and 'Ctl'), and a set of writable icons (below the icon saying
- 'No action').
-
- The command line definitions may be specified in the writable icons (there is
- room for seven different command line definitions). Dragging a set of objects
- to this icon will perform the operation directly. The 'Bar', 'Alt' and 'Ctl'
- columns select the operation to perform when a set of objects is dragged to
- FileAct's icon bar icon ('Bar' column), or when an object is double-clicked
- on while holding down an Alt key ('Alt' column), or when an object is
- double-clicked on while holding down a Ctrl key ('Ctl' column). When 'No
- action' is selected, no operation is performed.
-
- The 'Options' part contains a flag called 'Recurse'. If 'Recurse' is checked,
- and a target object is a directory, all of the contents of that directory is
- also processed, recursively.
-
- NOTE : Use the 'Recurse' option with caution. If you execute a potentially
- harmful operation, the damage you can do if recursion is enabled is, of
- course, much larger.
-
-
- //
- //
- // Command line definitions
- //
- //
-
- On execution of a command line, the full pathname of the target object is
- always available in the system variable 'FileAct$ObName'. This may be useful
- in a number of situations.
-
- Prior to execution, the command line definition is scanned for special
- sequences of the form '%<id>', which will be replaced by the corresponding
- part of the full pathname of the target object.
-
- The <id> selects which part is substituted. In the examples following, the
- object's full pathname is 'adfs::mydisc.$.dir1.dir2.fred'.
-
- ---------------------------------------------------------
- <id> Meaning Result for example
- ---------------------------------------------------------
- f full pathname adfs::mydisc.$.dir1.dir2.fred
- p (pre-leaf) pathname adfs::mydisc.$.dir1.dir2
- s filing system name adfs
- m media name mydisc
- d directory path $.dir1.dir2
- l leafname fred
- ---------------------------------------------------------
-
- In addition, by using upper case characters (i.e. F,P,S,M,D or L), the part
- may be cut down further by a MID$-like operation, as in BASIC.
-
- The full <id> is then of the form '<upchar><arg1><arg2>', where <upchar> is
- the upper case selection character, and <arg1> and <arg2> are 3-character
- values representing the arguments for the MID$ function (i.e. their VAL is
- taken). When a value is negative or zero, the value LEN(r$)+value is taken,
- where r$ is the pathname part selected.
-
- Some examples :
-
- -------------------------------------------------------------------
- <id> Result for example Function
- -------------------------------------------------------------------
- F001-01 adfs::mydisc.$.dir1.dir2.fre MID$(r$,1,LENr$-1)
- D003005 dir1. MID$(r$,3,5)
- L-02002 re MID$(r$,LENr$-2,2)
- F002000 dfs::mydisc.$.dir1.dir2.fred MID$(r$,2,LENr$)=MID$(r$,2)
- -------------------------------------------------------------------
-
- The power of this scheme will be demonstrated by giving a few example command
- line definitions :
-
- ---------------------------------------------------------------------
- Definition Result for example
- ---------------------------------------------------------------------
- Rename %f %f! Appends a '!' to the end of the object's name
- Rename %f %p.%L001002 Truncates leafname to first two characters
- Rename %f %p.%L001-01 Cuts off last character of leafname
- Rename %f %p.%L002000 Cuts off first character of leafname
- Rename %f %s::%m.$.%l Move object to root of media it's on
- Access %f WR Set object's access to public write/read
- SetType %f 123 Set object's filetype to &123
- Namedisk :%m %l Names the object's disc 'fred'
- Type %f -TabExpand *Types file, with TAB expansion
- Dump %f 1000 *Dumps file, from PTR=&1000 onwards
- ---------------------------------------------------------------------
-
-
- //
- //
- // Key definitions
- //
- //
-
- FileAct can also execute specific command lines on detecting specific
- keypresses.
-
- To use this feature you have to create a key definition file, containing a
- list of keypresses to be detected, and the corresponding command line to
- execute.
-
- The key definition file simply consists of a number of definition lines. A
- definition line starts with a key token, followed by a single space
- character, followed by the command line to execute. If the key token is not
- recognized, the definition line is ignored (you may use this to insert
- comments).
-
- A valid key token consists of a single character specifying the 'special' key
- to be pressed, followed by an uppercase A..Z or 0..9, or 'TAB' (for the TAB
- key). The special key characters are :
-
- 's' : SHIFT
- 'c' : CTRL
- 'a' : ALT
- 'n' : none, i.e. the key must be pressed on its own
-
- E.g. 'cH' means 'CTRL and H pressed simultaneously', 'nA' means 'A pressed on
- its own', 'sTAB' means 'SHIFT and TAB pressed simultaneously', etc..
-
- An example key definition file would be :
-
- cF Run IDEFS::4.$.!FileAct
- n0 Filer_OpenDir ADFS::0.$
-
- The pathname of the key definition file is '<FileAct$KeyActDir>.KeyDefs',
- i.e. the system variable 'FileAct$KeyActDir' must be set to the directory
- path, without a trailing '.' (FileAct's !Run file is a good place for this),
- and your key definition file must be called 'KeyDefs' and placed in that
- directory. The !Run file that comes with your !FileAct copy may contain
- somebody elses setting for 'FileAct$KeyActDir', so you probably want to
- change this to your own. If the 'FileAct$KeyActDir' system variable is
- undefined on startup, or if the directory that it points to does not exist,
- or if the definition file 'KeyDefs' cannot be found in that directory,
- FileAct's keypress functions will be silently disabled.
-
- There is an example key definition directory called 'KeyActDir' inside the
- !FileAct.Examples directory.
-
- NOTE : FileAct will only try to detect keypresses if the caret is 'disowned'
- (i.e. if it is not used by any application), because otherwise all keypresses
- that have a 'FileAct definition' would cause two different things to happen
- at the same time. E.g. pressing '0' in a writable icon would not only insert
- a '0' but also cause FileAct's 'n0' definition to be executed each time.
-
- RELATED NOTE : Pressing the right-hand ALT key and the right-hand CTRL key
- together is pre-programmed to disown the caret, enabling FileAct to react to
- keypresses immediately afterwards.
-
-
- //
- //
- // The 'Status' menu
- //
- //
-
- In this menu you can manipulate FileAct's 'status', which consists of a
- number of configuration settings.
-
- - 'Save' will save the current status.
- - 'Load' will load the saved status.
- - 'Default' will load the default status.
- - 'Kill' will remove the saved status.
-
- When FileAct starts up it loads the saved status, or the default status if
- there is no saved status.
-
- The status consists of the 'Actions' and 'Options' settings.
-
-
- //
- //
- // Epilogue
- //
- //
-
- Updates of FileAct will be made available by (in order of preference) :
-
- - World Wide Web, on www.inter.nl.net/users/J.Kortink.
- - Electronic mail, to kortink@inter.nl.net.
- - Snail mail, to : John Kortink, Nutterbrink 31, 7544 WJ Enschede, The
- Netherlands. Include a DD or HD floppy, return envelope and one
- International Reply Coupon (IRC).
-
-