For most actions performed from the VMDGUI, there is an equivalent script command. VMDcan print these commands to a log file or the console. This is a convenient way to automate file processing by first doing all steps interactively while logging to a file and then editing the logfile to turn it into a Tcl script operating on multiple files. There are two ways to do this in VMD:
The resulting file will contain Tcl script code that can be executed from the VMDcommand prompt. The Log TCL Commands to Console button or the command logfile console will print the Tcl commands to the console window instead. This is most useful, if you just want to find out, which VMDcommand is used to perform a specific action.
Finally, the logfile off command or clicking on the Turn Off Logging button will stop the log and close the log file, if needed.