Hi,

thanks for fixing that promptly, I will give it a try when its on sf.

What would be really awesome, if you could use the write command in the applet 
and instead of writing the files locally it would send them via HTTP POST to 
some remote server. I'm currently trying to mimic that by getting the data into 
JavaScript via jmolEvaluate (COORDS PDB and hopefully POVRAY) or 
jmolGetPropertyAsString (e.g. image, stateInfo) and then inject the data into 
some html form and send them via POST. Also with the write ZIPALL and the write 
STATE LOCALPATH/REMOTEPATH "path" commands it should be fairly straightforward 
to replicate the state of an applet in a standalone version running on some 
server to e.g. create high quality images or movies remotely.


btw i'm on an intel mac with 10.6.4 using firefox 3.6 and safari 4, loading 
3cap.pdb

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

Reply via email to