From: Axel Kohlmeyer (
Date: Wed May 21 2008 - 09:17:12 CDT

On Wed, 21 May 2008, wrote:

AP> Hi,

dear aurelie,

AP> Now, I would like to know if it's possible to call VMD with a directory which
AP> contains molecules to be input ? If yes, how to do that ?

yes. this is possible, but not out-of-the box.

you have to put the commands to load a series of molecules
into a tcl script and load that instead with the -e flag.

the script could contain code like the following (untested):

foreach m [glob *.pdb] {
  mol new $m waitfor all

this type of question has come up before, so please see
the mailing list archives. you may probably also want to
change the default visualization etc.


AP> Thanks in advance,
AP> Aurélie Paquot

Axel Kohlmeyer
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
If you make something idiot-proof, the universe creates a better idiot.