From: Maxim Belkin (
Date: Wed Jan 22 2014 - 14:02:35 CST

Hi Subbarao,

How exactly do you call your script?


On Jan 22, 2014, at 1:29 PM, Subbarao Kanchi <> wrote:

> Dear All,
> I am using VMD in test mode (vmd -dispdev text ). I run the following commands in vmd command prompt and are working good. But I write same commands in a script.tcl and script is sourced in command prompt, it gives an error "invalid command name "last"". I will appreciate any suggestion to over come this problem.
> mol new .psf type psf
> mol addfile .dcd type dcd first 5000 last -1 step 1
> Thanks and regards,
> Subbarao Kanchi.