How about this?
x = script("show symmetry")
That is, getting the output from any script command routed to a
variable. This can then be split into lines:
x = script("show symmetry").lines
filtered:
x = script("show symmetry").lines.find("spaceGroup")
etc.
And(for the applet):
x = javascript("prompt('What do you want for x?')")
That is, assignment to a variable of anything that can be returned from
JavaScript.
This then pretty well integrates the two scripting environments -- Jmol
and JavaScript.
Note that, for example for the Wikipedia, we can disallow all such
JavaScript evaluation using
_jmol.noEval = true
prior to the applet setup.
This then suggests the simple command as well:
javascript ...
This also is an applet-only command.
Check it out at
http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/new.htm
Bob
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users