1. if script is completed then send the log report to tester
--To call a script, run it so that it generates its own logfile, access the status, and log information based on whether or not the script run was a failure:
put the result into MyResults
if MyResults.status is "Failure"
logwarning "the script failed. Making note of this in the data file."
put MyResults into item 5 of line 10 of file "path/to/DataFile.txt"
log "SomeScript.script succeeded. Making note of this in the data file"
put MyResults into item 6 of line 10 of file "path/to/datafile.txt"
2. if script pause then send the mail to tester
put MyResults into file "/path/to/resultfile.txt"
put MyResult & return after file "/path/to/resultfile.txt"