home *** CD-ROM | disk | FTP | other *** search
- >Guide
- _______________________________________________________________________________
-
- FileAct 2.12 --------------------------
- This program is FREEWARE
- Version date : 29 May 1993 --------------------------
-
- ----------------
- - Introduction -
- ----------------
-
- FileAct performs actions on (groups of) files and directories, optionally
- recursing through subdirectories. In addition, it can execute specific command
- lines on detection of specific key presses, enabling key-press application
- launches, short-hand OSCLI commands, etc..
-
- You may define command lines to invoke on objects, or a predefined 'edit'
- action that calls a text editor or the Basic editor for appropiate files.
-
- Powerful and flexible 'group' actions on objects may be performed by using
- command lines with variables in them that will be filled in with (parts of) the
- object's full pathname on execution.
-
- Wimp_StartTask is used for all invocations, so it is possible to execute entire
- programs per object. The full pathname of the object is always available in a
- system variable.
-
-
- -------------------------
- - Using the application -
- -------------------------
-
- To start up FileAct, double-click on the '!FileAct' icon.
-
- It will install itself on the icon bar, and clicking MENU on FileAct's icon
- pops up the main menu, giving the usual 'Info' and 'Quit' options, and others,
- which will be discussed further on.
-
-
- -----------------
- - The main menu -
- -----------------
-
- This menu, popped up by clicking MENU on FileAct's iconbar icon, contains a
- number of icons (some of which lead to submenu's/windows). The functions of the
- icons will be discussed below.
-
- The main purpose of the main menu is to provide access to FileAct's control
- window (via the 'Control' icon), which contains (in groups) most of the
- available options and controls.
-
- -----------
- | Control |
- -----------
-
- Gives access to FileAct's control window, which contains most of FileAct's
- options and controls, divided into groups.
-
- Clicking on this icon will make this window permanent (but it can be closed
- again by clicking on its close icon).
-
- Several types of icons appear in the control window :
-
- - Toggle icons. These are square, and clicking on them switches the
- corresponding option on (red square in its middle) or off ('closed' box).
- - Radio icon sets. Icons in these sets are diamond shaped, and act like the
- toggle icons, but only one of them may be on. Switching any one on will
- switch off all the others in the same set (hence the name 'radio' icons).
- - Writable icons. These are square icons with a border and a white background,
- in which you may click an subsequently enter a value or text.
-
- The functions of the icons in the control window are discussed below. Icons are
- identified by giving their 'path', i.e. group name (name on the border
- surrounding the group), if appropiate followed by sub-category (medium grey
- heading), followed by the icon's own name, seperated by '|'s.
-
- \\\\\\\\\
- Actions ***
- /////////
-
- The text icons below this ('No action', 'Invoke Text editor or Basic editor'
- and several writable icons) indicate the actions that may be performed on
- objects.
-
- You may change the text in the writable icons to any command line (see 'Command
- lines' for details on the syntax and semantics of command lines), while 'No
- action' and 'Invoke Text editor or Basic editor' are fixed actions.
-
- There are three sets of radio icons preceding the action text icons. These
- indicate which of the actions will be performed on objects that are
-
- - Dragged to FileAct's iconbar icon ('Bar')
- - Double-clicked on while holding the ALT key ('Alt')
- - Double-clicked on while holding the CTRL key ('Ctl')
-
- In addition, a particular action may be executed by dragging the object(s) to
- the appropiate action text icon.
-
- 'No action' indicates that no action will be taken in these situations.
-
- 'Invoke Text editor or Basic editor' invokes a Basic editor for all BASIC
- files, and a Text editor for all the other filetypes. See 'Running programs'
- for details.
-
- \\\\\\\\\\\\\\\\\\\
- Options | Recurse ***
- ///////////////////
-
- This toggle icon switches on/off directory recursion.
-
- When recursion is ON, directory objects are recursed, i.e. they are recursively
- entered, and all files and other subdirectories in them will also be subject to
- the chosen action.
-
- This is very useful to, say, unlock all files and directories in applications
- that insist on the opposite for some reason (e.g. Acorns C release 3). You
- would simply use, e.g., 'Access %f WR' as the action.
-
- NOTE : The recurse option should be used with caution. Be careful when invoking
- the Text or the Basic editor, as recursion can cause invocation on a *lot* of
- objects. As errors are not returned by Wimp_StartTask, you will not be able to
- abort a long sequence of invocations by using ESCAPE.
-
- \\\\\\\\\\\\\\\\\\\\
- Options | Run Text ***
- ////////////////////
-
- This toggles on/off catching of plain double-clicks on Text (filetype &FFF)
- files.
-
- When ON, the Text editor is invoked as in 'Invoke Text editor or Basic editor'.
- When OFF, no action is taken.
-
- ----------
- | Status |
- ----------
-
- This icon gives access to a submenu of status handling functions.
-
- FileAct's status consists of the items marked ***, and the settings of the
- 'Bar', 'Alt' and 'Ctl' radio icon sets.
-
- - Save
-
- Clicking on this icon will save the current status in FileAct's status file.
-
- This file (when present) is always loaded on startup, or may be explicitly
- loaded by using the 'Load' option (to override the current status).
-
- - Load
-
- Clicking on this icon explicitly (re-)loads the status file, overriding the
- current status.
-
- - Default
-
- Clicking on this icon selects the default status settings.
-
- - Kill
-
- Clicking on this icon will remove the status file. 'Standard' defaults will
- be used when FileAct is next started up.
-
-
- --------------------
- - Running programs -
- --------------------
-
- It is possible to run entire programs by using an appropiate command line
- action that calls them.
-
- The system variable 'FileAct$ObPath' will always contain the full pathname of
- the object that the action was invoked on.
-
- In the !FileAct directory is an example program 'ExProg' that simply prints
- some info on the object on which the action was invoked. It may be executed by
- using a command line saying '<FileAct$Dir>.ExProg'.
-
- When executing the 'Invoke Text editor or Basic editor' action, in addition the
- system variable 'FileAct$ObDir' will be set to the directory that the object is
- in.
-
- Then the obey file 'TextEd' or 'BasicEd' (which are in the !FileAct directory)
- will be executed as appropiate. Change these if needed (e.g. your editor
- modules are probably different and elsewhere).
-
- When clicking SELECT or ADJUST on the iconbar icon, the obey file 'TextEd0' or
- 'BasicEd0' (which are in !FileAct's directory) will be executed as appropiate.
- As with 'TextEd' and 'BasicEd', change these if needed.
-
-
- -----------------
- - Command lines -
- -----------------
-
- The command lines can be made very powerful by using variable names in them
- that will be replaced on invocation with (parts of) the object's full pathname.
-
- Prior to execution, the command line is scanned for special sequences of the
- form '%<id>', which will be fully replaced with the appropiate (part of) the
- object's full pathname.
-
- The <id> part determines which part is substituted, as follows. 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 instead of lower case (i.e. F,P,S,M,D or L),
- the part chosen may be 'cut down' by a MID$ 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 LENr$+value is taken, where r$ is
- the pathname part selected by <upchar>.
-
- 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 option (especially for *Rename's) will be demonstrated by
- giving a few example command strings :
-
- -----------------------------------------------------------------------
- Command string 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
- -----------------------------------------------------------------------
-
- NOTE : Some full pathnames, as delivered by the filer(s) via the WIMP, may not
- contain a media or filing system name, e.g. when referring to RAM disc objects
- (which are usually of the form 'RAM:$.etc' instead of 'RAM::RamDisc0.$.etc').
- In these cases, the corresponding %m, %s or other <id>'s will return an empty
- string. For example, the above example that does 'Move object to root of media
- it's on' should be entered as 'Rename %f %s:$.%l' when using the RAM disc. You
- can always check what the exact name of the object will turn out to be by
- looking at the relevant filer window's title.
-
-
- ---------------------
- - Key-press actions -
- ---------------------
-
- In addition to the 'click-or-drag' actions on files, FileAct can also execute
- specific commands on detecting specific key-presses.
-
- To this end, the user creates a definition file, containing the keys or key
- combinations to be detected, and the appropiate command to send to
- Wimp_StartTask when this keypress is detected (i.e. enabling application
- launch, quick OS_CLI actions, etc.).
-
- The definition file simply consists of any number of single definition lines,
- which start with a tokenised specification of the key or key combination,
- followed by a single space character, followed by the command to be sent to
- Wimp_StartTask.
-
- The key token consists of a single character specifying the 'special' key to be
- pressed, followed by an uppercase ASCII 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. key pressed on its own
-
- I.e. 'cH' signifies CTRL-H, 'nA' signifies A pressed on its own, etc..
-
- An example definition file would be :
-
- cF Run IDEFS::4.$.!FileAct
- n0 Filer_OpenDir ADFS::0.$
-
- which would run !FileAct on a CTRL-F keypress, or open a viewer on the root
- directory of the floppy in drive 0 when 0 is pressed on its own.
-
- The definition file should be named 'KeyDefs', and should reside in a directory
- which may be anywhere on your (hard)disk, enabling your definitions (and
- accompanying short 'util programs') to be stored seperately from FileAct. This
- directory is made known to FileAct by setting the variable 'FileAct$KeyActDir'
- to the full pathname of the directory (i.e. IDEFS::4.$.!Boot.FileAct).
- FileAct's !Run file is the appropiate place to set this variable.
-
- The !Run file that comes with your !FileAct copy probably contains the last
- user's own path for this, so change this to your own. If 'FileAct$KeyActDir'
- does not exist on startup, or the directory it points to is non-existant, or
- the key definition file 'KeyDefs' cannot be found, FileAct's keypress actions
- function will be inactive.
-
- There is an example 'definitions directory' called ExDefs inside the !FileAct
- directory. Note it is ok to insert comments into the definition file as long as
- they don't resemble a definition line (i.e. start with a special character
- token).
-
- NOTE : FileAct will only react to the keypresses defined when the caret is not
- owned by any application (e.g. when you're editing writable icons, you would
- not want every CTRL-U to have the side-effect of booting up an application !).
-
- RELATED NOTE : Pressing the right-hand ALT and the right-hand CTRL together
- will disown the caret, enabling FileAct to react to keypresses immediately
- afterwards.
-
-
- ----------------
- - Memory usage -
- ----------------
-
- FileAct uses a fixed amount of memory. It does not claim any extra memory in
- any situation.
-
- Be prepared to have some memory free though, as all invocations are through
- Wimp_StartTask, which needs a wimp slot to run. How large the wimp slot needs
- to be depends on any programs executed. Most commands do not take any extra
- memory.
-
-
- -----------
- - The end -
- -----------
-
- This application is Freeware, which means it may be copied freely, as long as
- it is not charged for and is copied completely and unchanged.
-
- If you have praise, complaints, comments, bugs(!), or anything else to offer
- me, do not hesitate to write to
-
- John Kortink
- Nutterbrink 31
- 7544 WJ Enschede
- The Netherlands
-
- or try email to john@dialis.hacktic.nl.
-
- New versions of the application are available from the same address : just send
- £1 to cover postage and a self-addressed envelope containing a formatted 3.5"
- disc.
-
- It is not very likely though that many new versions will appear. !FileAct
- serves a simple purpose, and does it quite well.
-
- Happy filing !!!
-
- _______________________________________________________________________________
-
- !!! NOTE !!!
-
- You may NOT change this application or use ANY part of it in other products
- without my approval. You may spread it freely (with *ALL* files included), but
- not for any profit. This software is provided 'as is'. Using it is entirely at
- your own risk.
-
- _______________________________________________________________________________
-
-