# this code is to list the scripts def listscripts fileList = Dir.new($shellscript_directory).entries.sort.delete_if { |x| ! (x =~ /sh$/) } @listscriptresult = fileList.rwd_method("fillscriptname") end def fillscriptname(inffile) applet = inffile.gsub(/\.sh$/, "") @a_scriptfilename = applet $currentscriptname = applet @a_scriptcmd = applet end