OK, I almost have script queuing done. JSmol implements Jmol's script queue
very nicely, including PAUSE, RESUME, !quit, and !exit. What a challenge!
http://chemapps.stolaf.edu/jmol/jsmol.zip
http://chemapps.stolaf.edu/jmol/jsmol/test2.htm
I have to redesign TRY and FUNCTION to handle script interruptions
correctly -- they work as long as you do not have DELAY or MOVE or related
commands that start another process and then (are supposed to) come back to
the original process. But I think I know how to do that now and will
implement that when I get the chance.
I think the following will never work:
print script("delay 1.0;echo OK")
Which is pretty odd, anyway. It won't delay a second before it returns; it
will just return immediately and disregard the delay. But
script INLINE 'delay 1.0;echo OK'
should work fine.
Bob
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users