... also if anyone might find these helpful, there's an article that may be of interested here:
http://surfer.nmr.mgh.harvard.edu/fswiki/QaImageScripts
This shows tcl scripts to do something substantial in tkmedit and tksurfer, and bash scripts to activate FreeSurfer and the tcl scripts.
Hope that helps,
Graham
freesurfer@nmr.mgh.harvard.edu