OK, I've checked that in.
scriptWait("script","desiredStatusMessages")
messages include:
atomPicked fileLoaded fileLoadError frameChanged
measurePending measureCompleted measurePicked scriptStarted
scriptEcho scriptStatus scriptError scriptMessage
scriptTerminated userAction viewerRefreshed newOrientation
for example,
s = applet.scriptWait("load someFile;olor atoms red","scriptError")
returns to s:
{"jmolStatus": [[[2,"scriptError",0,"script compiler ERROR: command
expected : olor atoms red | line#1"]]]}
which is as a JSON string that decodes using
myArray = eval( "(" + s + ")" ).jmolStatus
as
myArray[0][0] = 1 // message number
myArray[0][1] = "scriptError" // message type
myArray[0][2] = 0 // optional integer data
myArray[0][3] = "script compiler ERROR: command expected : olor atoms
red | line#1" //msg
Good idea, Miguel.
Bob
Miguel wrote:
The return from scriptWait() depends upon what you have asked for in
a previous "getProperty()" call.
Uhhh ... this needs to be corrected.
Miguel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users