On Oct 20, 2006, at 10:14 AM, [EMAIL PROTECTED] wrote: >> Thank You for this one!!! And half way on the road. >> There is a slight drawback with this solution. Each time >> my generated script contains an error, detected by Jmol, >> the execution stops with a compileError: >> >> --* console start *-- >>> sh jmol -ons /tmp/test.mol.spt >> Executing script: /tmp/test.mol.spt >> FileManager opening /tmp/test.mol.spt >> compileError(cannot SET:zoom) >> --* console stop *-- > > OK, this is not a file-read issue; it's a chime script issue. There > have > been efforts to do this sort of conversion -- > http://www.chem.umass.edu/people/cmartin/Jmol/Development/% > 20CHIME2Jmol.html > comes to mind. But this could be looked at again. >
one of my early requests was that Jmol *not* throw a compile error when it reads an invalid script command (set zoom center is Chime but not Jmol). it would be much more friendly if Jmol logged the offending command and continued with the rest of the script. as I recall, Miguel convinced me that there were good programming reasons not to do this. in the past, I have set up various kinds of filters to catch and comment such commands. most of the time, it has been fairly straightforward, because the commands were all coming through javascript. since your source is an external file, though, it may be more tricky to implement. but I can envision a simple server-side filter, perhaps using perl or php, if you have access to the server. how difficult would it be to add a scripting buffer to Jmol itself? that would allow Jmol to strip out or comment invalid commands, without user intervention. regards, tim ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

