
! script name: tools.d/tools
! topic: Sample - test script for streaming a current tool list

!A
!A NAME:
!A
!A 	STANDARD TOOLS
!A
!A DESCRIPTION:
!A
!A 	This script allows a current tool list to be put into a stream file,
!A 	called toolstream.
!A
!B INSTRUCTIONS:
!B
!B 	INPUT TOOL ID NAME: Enter the name of the tool to be included in the
!B 		stream file.
!B
!C NOTE:
!C
!C 	This is an unsupported sample script.
!C

stat=ChangeLabelStr("ScriptNameStatus","Function: standard tools ")

DIM Destination$[256]
DIM Answer$[256]
DIM Name$[256]

DeActivateUndo
Start:!

Stat=StreamInput("/usr/weber/ascrpt/tools.d/toolstream")

Stat=SetInputFormat("a99","")
Stat=GetValue("INPUT TOOL ID NAME",Answer$)
IF (ExitScript(Destination$)) THEN Leave

GOTO Start

Leave:!
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
