From: Chris Harrison (charris5_at_gmail.com)
Date: Sun Oct 30 2011 - 10:28:37 CDT

Not the most efficient way to run gedit, but if you so desire to do it
through vmd:
exec open -a gedit
if it's in your OSX Applications folder, otherwise
exec path/to/the/binary/MyBinary

Best,
Chris

--
Chris Harrison, Ph.D.
Theoretical and Computational Biophysics Group
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave., Urbana, IL 61801
char_at_ks.uiuc.edu                          Voice: 773-570-0329 
http://www.ks.uiuc.edu/~char              Fax:   217-244-6078
Anthony Rey <arey_at_etud.insa-toulouse.fr> writes:
> Date: Sun, 30 Oct 2011 21:55:06 +1000
> From: Anthony Rey <arey_at_etud.insa-toulouse.fr>
> To: VMD-list <vmd-l_at_ks.uiuc.edu>
> Subject: vmd-l: Run a variable through VMD Tk/Tcl console  .vmdrc file
> User-Agent: RoundCube Webmail/0.4
> 
> Hi all,
> 
> I use VMD on a Mac OS X version 10.6.8.
> 
> I want to run gedit through my Tcl/Tk console but can't figure out
> out to do it. I made an alias in my .bashrc file and it does work in
> my Terminal:
> 
> alias gedit ' /Applications/gedit.app/Contents/MacOS/gedit ';
> 
> I thought that I just had to copy this alias into the .vmdrc file to
> be able to run gedit through the Tcl/Tk console....but it doesn't
> work:
> 
> I obtain the following error message:
> 
> /usr/bin/alias: line 4: alias: gedit: not found
> /usr/bin/alias: line 4: alias: ': not found
> /usr/bin/alias: line 4: alias:
> /Applications/gedit.app/Contents/MacOS/gedit: not found
> /usr/bin/alias: line 4: alias: ': not found
> child process exited abnormally
> 
> 
> How could I possibly run gedit (as well as other packages such as
> xmtrace etc..) through the Tk/Tcl console in VMD?
> 
> Thanks very much for your help,
> 
> Tony