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

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.
Jmol-users mailing list

Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN

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