VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed Jun 19 2019 - 16:42:06 CDT
- Next message: giuseppe_at_ks.uiuc.edu: "NAMD Developer Meeting 2019"
- Previous message: Roessler, Bryan C: "Re: Issues with Tcl script for MD Prep"
- In reply to: Roessler, Bryan C: "Re: Issues with Tcl script for MD Prep"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
I should also mention that when one uses source, if there are any
syntactic errors in the code, execution will halt, whereas when you
paste code into the interpreter line-by-line (as in TkCon or when
using the "play" command) if you have an error, subsequent commands
will still be run.
Best,
John
On Wed, Jun 19, 2019 at 07:19:03PM +0000, Roessler, Bryan C wrote:
> For instance: puts $ofile "if \{1} \{"
>
> Should be: puts $ofile "if \{1\} \{"
>
> Cheers,
>
> Bryan
>
> --------------------------------------------------------------------------
>
> From: owner-vmd-l_at_ks.uiuc.edu <owner-vmd-l_at_ks.uiuc.edu> on behalf of
> Bassam Haddad <bhaddad_at_pdx.edu>
> Sent: Tuesday, May 28, 2019 2:29:05 PM
> To: Matt Veter
> Cc: VMD Mailing List
> Subject: Re: vmd-l: Issues with Tcl script for MD Prep
>
> Hey All,
> Just following up with this thread, I too am curious as to why this script
> won't work.
> ~ Bassam Haddad
> On Tue, May 7, 2019 at 12:30 PM Matt Veter <[1]veter_at_pdx.edu> wrote:
>
> Hello all,
> I have been trying to write a script for Tcl to automate the preparation
> of MD configuration files. When I test the script directly in the VMD Tk
> console, everything runs as expected. However, when I try and source the
> script using the same code, I receive an error message.
> The script is attached. This is the error I receive when sourcing:
> vmd > source test.tcl
> wrong # args: should be "foreach varList list ?varList list ...?
> command"
> Thanks
>
> References
>
> Visible links
> 1. mailto:veter_at_pdx.edu
-- NIH Center for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349 http://www.ks.uiuc.edu/Research/vmd/
- Next message: giuseppe_at_ks.uiuc.edu: "NAMD Developer Meeting 2019"
- Previous message: Roessler, Bryan C: "Re: Issues with Tcl script for MD Prep"
- In reply to: Roessler, Bryan C: "Re: Issues with Tcl script for MD Prep"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]