The script() function allows you† to run a script and get the return that would have gone to the console.
I'm wrong about scriptWait. It's fine. I forgot I added safeties to prevent that from messing up running scripts.


On Wed, Oct 30, 2013 at 10:58 AM, Dave Howorth <dhoworth@mrc-lmb.cam.ac.uk> wrote:
Angel HerrŠez wrote:
>> You should really try to avoid JmolScriptWait. It isn't thread-safe,
>> and you can do anything with JmolEvaluate that you can with
>> ScriptWait.
>
> Bob, can you ellaborate on that? I just had the need to go for
> scriptWait a few days ago (page building a peptide helix).

I'm a noob with Jmol and don't understand how JmolEvaluate lets me run a
script and wait until it completes, which is what I want to do. The doc
says it evaluates an expression. Can I turn a script into an expression,
something like a perl eval?

I'd also appreciate a pointer to any explanation of caveats with regards
to threading. I haven't seen any mention of threads at all so far in my
reading.

Cheers, Dave

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users



--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
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