#!/bin/csh -f
# This script grabs picture from the g2k editor
#
if ( -f $argv[1] ) then
	source $argv[1]
else
	PAUSE "File doesn't exist $argv[1]"
	exit 0
endif

COM get_units
set cur_units = $COMANS
COM units,type=inch

COM display_get_conf,file=$grab_resp
COM disp_snapshot,file=$jpeg_file,width=200,height=120

COM units,type=$cur_units

rm -f $argv[1]
set OS = `uname -s`
if ( $OS =~ *WIN* ) then
	set jpeg_file = (`echo $jpeg_file |  sed 's/\\/\\\\\\\\/g' | sed 's/\//\\\\\\\\/g'`)
endif

echo "jpeg_file=$jpeg_file" >> $grab_resp












