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.

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
------------------------------------------------------------------------------
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

Reply via email to