----- file created by xop_makedoc on: Mon Mar 31 12:31:09 2003
----- Documentation for /scisoft/XRayOptics/xop2.1/src_idl/xoplib/xop_input_run.pro -----

 NAME:
       XOP_INPUT_RUN

 PURPOSE:
       This procedure reads an XOP input file, extract the application
	name and runs this application with the parameters in the file.

 CATEGORY:
       XOP

 CALLING SEQUENCE:
       Xop_Input_Run, file

 OPTIONAL INPUTS:
	File: the name of the file containg the parameters to be run.
		(If inputFile is not set, starts the file browser to get it).

 KEYWORD PARAMETERS:
       GROUP:  The widget ID of the group leader of the widget.  If this
               keyword is specified, the death of the group leader results i n
               the death of widgets created by XOP_WD.
	Confirm: Asks for confirmation befor start the run
	_Extra: any other keyword to be passed to Dialog_PaickFile
       
 OUTPUTS:
       Starts the corresponding XOP application and loads the inputs.

 SIDE EFFECTS:

 PROCEDURE:
       reads the first line in the <application>.xop file 
	(i.e. ; xop/xus(v1.9) input file on Thu Dec  3 17:22:34 1998 )
	and extracts the application name (in this case xus).
	Loads the parameters in the <application>.xop file and stores 
	them in the application. 

 USE:
       To start any XOP application from the Main XOP window (File menu).

 EXAMPLES:
       Xop_Input_run

 MODIFICATION HISTORY:
       Written by:     Manuel Sanchez del Rio (srio@esrf.fr) 98/11/05


