Hello all,
I've had great success using tcl scripts to loop over surfaces and overlays for a given subject. Are there scripting options for looping over subjects?
The problem I see is that the call to tksurfer initializes the subject ("tksurfer subjid lh inflated -tcl myscript.tcl"), and I'm unsure how to change the subjid inside the tcl script. How can I invoke tksurfer inside a tcl script?
I found another post asking the same question, but I couldn't find a response: http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg02344.html
One workaround would be to do the loop from the shell, invoking a separate instance of tksurfer for each subject/hemisphere, but in that case I'm unsure how to quit tksurfer from the shell after each call (instead of winding up with dozens of tksurfers running simultaneously). Any advice would be appreciated.
Many thanks, Carrie