I would like to use AppleScript to batch run a bunch of programs and get the time that each one ran.
Example: From the command line I would type
$ time ls
set result to do shell script "time ls"
set result to do shell script "time"
exec 2>&1 command to redirect the STDERR to STDOUT, like this:
do shell script "exec 2>&1; time ls"