OK, beautiful. This gives my biochemist colleague everything he wanted:

var jsvar = Jmol.evaluate(jmolApplet0, "script('show 
file')").replace(/(\r\n|[\r\n])/g, "<br />");Jmol.setInfo(jmolApplet0, jsvar, 
true)

Actually, it gives me access to all the "show XXXX" in the "scratchpad", or 
whatever you want to call it - info pad?

Is there any way to control that "title." It retains the contents of the 
previous call - i.e. number of matches.

Otis 
--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com

On Mar 10, 2013, at 1:49 PM, Robert Hanson wrote:

> "show smiles" is a command. jmolEvaluate requires an expression
> 
> xxx = JmolEvaluate(jmolApplet0, "script('show smiles')")
> 
> 
> Bob
> 
> 
> On Sun, Mar 10, 2013 at 10:20 AM, Otis Rothenberger <osrot...@chemagic.com> 
> wrote:
> Thanks Bob, for some reason I keep forgetting about Jmol.evaluate. Even 
> though I use it all the time.
> 
> I am having a problem, however. The following works:
> 
> var jsvar = Jmol.evaluate(jmolApplet0, "2+2");Jmol.setInfo(jmolApplet0, 
> jsvar, true)
> 
> The following prints ERROR in the "scratchpad" (info ?) screen:
> 
> var jsvar = Jmol.evaluate(jmolApplet0, "show 
> SMILES");Jmol.setInfo(jmolApplet0, jsvar, true)
> 
> I'm using "show SMILES" above, but the ERROR appears to be an issue with any 
> show XXXX
> 
> Also, it appears there may be a settable title at the top of the scratchpad 
> with a [Jmol._Canvas2D (JSmol) "jmolApplet0"] default. Is that correct?
> 
> Otis
> --
> Otis Rothenberger
> o...@chemagic.com
> http://chemagic.com
> 
> 
> 
> 
> 
> On Mar 9, 2013, at 9:06 PM, Robert Hanson wrote:
> 
>> var jsvar = Jmol.evaluate(jmolApplet0, "show PDBHEADER")
>> 
>> 
>> On Sat, Mar 9, 2013 at 8:06 PM, Robert Hanson <hans...@stolaf.edu> wrote:
>> var
>> 
>> 
>> On Sat, Mar 9, 2013 at 7:35 PM, Otis Rothenberger <osrot...@chemagic.com> 
>> wrote:
>> Angel,
>> 
>> No I haven't, but that's a lot easier to work with in the "sketchpad" than 
>> the whole pdb file.
>> 
>> I'm guessing that this will suffice.  If so, I'll use message call back to 
>> get it and put it in the "sketchpad."
>> 
>> Otis
>> 
>> --
>> Otis Rothenberger
>> o...@chemagic.com
>> http://chemagic.com
>> 
>> 
>> 
>> 
>> 
>> On Mar 9, 2013, at 1:02 PM, Angel Herráez wrote:
>> 
>>> Otis, have you tried
>>>  show PDBHEADER
>>> ?
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
>>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
>>> endpoint security space. For insight on selecting the right partner to 
>>> tackle endpoint security challenges, access the full report. 
>>> http://p.sf.net/sfu/symantec-dev2dev
>>> _______________________________________________
>>> Jmol-users mailing list
>>> Jmol-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>> 
>> 
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> _______________________________________________
>> 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
>> 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
>> 
>> 
>> 
>> 
>> -- 
>> 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
>> 
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
>> endpoint security space. For insight on selecting the right partner to 
>> tackle endpoint security challenges, access the full report. 
>> http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> 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
> 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
> 
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to