all these appear to be working properly now in Jmol 12.0.RC24
On Fri, Jul 9, 2010 at 11:54 AM, Alexander Rose <[email protected]
> wrote:
> applet (RC20, the RC above that tend to freeze, but I haven't look into
> that):
>
> jmolEvaluate('write("coords","pdb")') -> ERROR
> jmolEvaluate('write("coords","PDB")') -> ERROR
> jmolEvaluate('write("coords")') -> works
> jmolEvaluate('write("coords", "XYZ")') -> works
> jmolEvaluate('write("coords", "xyz")') -> works
> jmolEvaluate('write("COORDS")') -> JPG64
>
>
> application (RC23):
>
> write COORDS PDB "struc.pdb" -> works
> write("coords") -> creates an image
> write("COORDS") -> creates an image
> write("ramachandran") -> creates an image
> write ZIPALL "zipall.zip" -> Users/alexrose/3cap.pdb (No such file or
> directory)
>
>
> best alex
>
>
> ----- Ursprüngliche Mail -----
> > Von: "Robert Hanson" <[email protected]>
> > An: [email protected]
> > Gesendet: Freitag, 9. Juli 2010 15:57:08
> > Betreff: Re: [Jmol-users] write function in the applet
> > On Fri, Jul 9, 2010 at 8:34 AM, Robert Hanson < [email protected] >
> > wrote:
> >
> >
> >
> >
> >
> >
> > On Fri, Jul 9, 2010 at 5:43 AM, Alexander Rose <
> > [email protected] > wrote:
> >
> >
> > Hi everyone,
> >
> > I'm trying to use the write function in the applet. It is advertised
> > to do:
> >
> > "x = write(...), the output of the write command is loaded into
> > variable x. The parameters are those of the write command. For
> > example, x = write("PDB") or x = write(quaternion, "r",
> > "difference2"). Note that x = write("image") is not supported."
> >
> >
> > I tried this with 11.8.24 and 12.0.RC20/23, both signed and unsigned:
> >
> > jmolEvaluate('write("ramachandran","r").split("\n");')
> >
> > - getting the ramachadran 'pdb' string works fine
> >
> >
> > jmolEvaluate('write("PDB");')
> >
> >
> >
> > oooh, you wouldn't want to do that. What were you expecting that to
> > do? The write command produces a structure file; jmolEvaluate is
> > expecting a math expression.
> >
> >
> >
> > Ignore me. Sure, that's fine. :)
> >
> >
> >
> >
> >
> > By the way, if you are doing this sort of testing, I recommend using
> > the Jmol application, not the applet, at least to check out scripts.
> >
> >
> >
> >
> > - returns 'ERROR'
> >
> >
> > jmolEvaluate('write("COORDS", "PDB");')
> >
> >
> >
> > ah, thanks. Just an upper-case/lower-case issue. For now you must use
> > "coords" not "COORDS", but I've fixed it for Jmol 12.0.RC24.
> >
> >
> >
> >
> >
> > - returns 'JPG64'
> >
> >
> > Any ideas?!
> >
> >
> > Cheers
> > Alex
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Sprint
> > What will you do first with EVO, the first 4G phone?
> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> > _______________________________________________
> > Jmol-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
> >
> >
> >
> > --
> > Robert M. Hanson
> > Professor of Chemistry
> > St. Olaf College
> > 1520 St. Olaf Ave.
> > Northfield, MN 55057
> > http://www.stolaf.edu/people/hansonr
> > phone: 507-786-3107
> >
> >
> > If nature does not answer first what we want,
> > it is better to take what answer we get.
> >
> > -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
> >
> >
> >
> > --
> > Robert M. Hanson
> > Professor of Chemistry
> > St. Olaf College
> > 1520 St. Olaf Ave.
> > Northfield, MN 55057
> > http://www.stolaf.edu/people/hansonr
> > phone: 507-786-3107
> >
> >
> > If nature does not answer first what we want,
> > it is better to take what answer we get.
> >
> > -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Sprint
> > What will you do first with EVO, the first 4G phone?
> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> > _______________________________________________
> > Jmol-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users