Hi all,

I want to save the tiffs of different views automatically.  I am trying to use tcl script to do it.
My problem is that I need to pass the file's name that is being displayed in the tksurfer window to the tiff file that I want to save to.

For example,

I am running
tksurfer -f $surface_file -tcl my_script.tcl

In my_script.tcl, I have the following command:

save_tiff ${file_name}-lateral.tiff


How can I pass the $surface_file in my command to ${file_name} in my_scripts.tcl?


Thanks.

Yang