1  SCRIPT
!
	Script

		Script is a command-level menu driver and interpreter.
		Language details are in the file SCRIPT.TXT.

		On-line help is availible on the following topics:


!
2  COMMAND_LINE
!
The command line for Script is:

  SCRIPT/switch/switch "substitution string" "sub string" script_filespec

Substitution string(s) are a hold over from the RSX version.  The use of
symbol and logical substitution is recommended.  For details, see manual.

In VMS the following switches are defined:  
!
3 /SCREEN_ONLY
!
SCREEN prevents the execution of any proceedures and causes the program 
to exit after the first successful input with the symbols SCR$RETURN 
equal to the 'nth' number of the selection and SCR$HELP set to "YES"
or "NO" depending on if help was or was not requested for that selection.
!
3 /HARDCOPY
!
HARDCOPY overrides the system parameter regarding whether the terminal
is a CRT or a hardcopy device and forces it to be treated as a harcopy
device.
!
3 /DEBUG
!
DEBUG forces set the debug flag to allow debugging of scripts without
having to edit in the the DEBUG control function.
!
3 /CONTEXT
!
CONTEXT causes the symbol "SCR$CONTEXT" to be read into the nesting
level and return filenames.
!
3 /LOCK
!
LOCK causes the lock flag (see the %LOCK function) to be set as the
default and the SLAVE function (disable control_C/Y) to be executed.
!
3 /BUILD
!
BUILD causes the script file specified to be 'compliled' and written
back to a new file of the same name.  A script system can contain
both types of scripts, 'compiled' and interpretted.
!
3 /NO_EXECUTE
!
NO_EXECUTE prevents the actual spawning of the commands.
!
3 /MAILBOX 
!
MALIBOX switch causes Script to create and open mailbox 'MAILBOX', spawn a
sub-process to execute the @SYS$SCRIPT:SCRIPT.MAIL_BOX, and pass '$' action
items via the mailbox to be executed.  (See VMS Mailboxes)
!
3 /BACKGROUND
!
BACKGROUND switch causes Script to create and open mailbox 'MAILBOX', and
pass '$' action items via the mailbox to be executed.  (See VMS Mailboxes)
!
2 INPUT
!
  User Inputs Summary

    At the Cursor:

	Arrow Keys		Moves the cursor up or down.
	<sp>, <tab>, <0>	Moves the cursor down.
	Backspace <bs>		Moves the cursor up.
	Carriage Return <cr>	Selects option.
	Question Mark <?>	Requests help for option.







    At the Cursor or the Prompt:

	<string><cr>		Request selection <string>.
	<cr>			Requests the top selection.
	<string?><cr>		Request help for selection <string>.
	"HELP" or "help"<cr>	Request help on Script input.
	$<string><cr>		Execute <string> as a command.*
	!<string><cr>		Exit with <string> in symbol SCR$COMMAND.*
	@<string><cr>		Change menu script to <string>.*
	PF1			Repaint screen.
	PF2			Same as <?>, requests help for selection.
	PF3			Request return to first menu script.*
	PF4			Exit Script process.*
	<^C>, <^Y>, <^Z>	Exit Script process.*
	<lf>			Executes a RETURN function.*
	<^W>			Repaint screen.
	<^T>			Display filename of current menu script.
* Subject to the "Lock" flag, if not allowed, treated as a <^W>.
!
2 INSTALLATION
!

	Installation and Notes

Script installs as a normal "foreign" command:

	sc*ript:==$ddan:[dir.dir]script.exe

The logical SYS$SCRIPT should point to where the scripts for the user resides.
