We did it! With Nico's tips and a some challenging debugging, I do 
believe we have a version of Jmol that can be run with no graphics 
window, delivering text over sysout and graphics to files or the 
clipboard. "-n" now really means NO display. I have some clean up to do, 
but if you want to try it out, here's a general formula:

  Jmol -ionx myscript.spt -w CLIP  mymodel.cif

to load mymodel.cif, run the script in myscript.spt, copy the image to 
the Windows (mac?) clipboard, and exit.

This says (i) silent (o) output to sysout (n) no display frame (x) run 
indicated script and exit (w) write -- to the Windows clipboard in this 
case.

  Jmol -ionx myscript.spt -w JPEG:myimage.jpg  mymodel.cif

to do the same, but to write a JPEG to myimage.jpg  mymodel.cif

  Jmol -ionx myscript.spt -w JPEG:myimage.jpg  mymodel.cif  > myoutput.txt

to do the same, but now to also trap the output from SHOW or getProperty 
script commands in myoutput.txt

Please let me know if this works. I'm transferring a temporary version 
of just the application file at

   http://www.stolaf.edu/academics/chemapps/jmol/Jmol.jar

in case anyone wants to test this out right away.


Bob

Rajarshi Guha wrote:

>On Tue, 2006-09-26 at 18:21 -0500, Bob Hanson wrote:
>  
>
>>Let's start a command-line thread. So far I have this:
>>
>>usage: Jmol
>> -o,--noconsole        no console -- all output to sysout
>> -D <property=value>   supported options are given below
>> -g,--geometry         window size 500x500
>> -h,--help             give this help page
>> -i,--silent           silent startup operation
>> -n,--nodisplay        no display
>> -s,--script           script file to execute
>> -w,--write            JPG|PNG|PPM:filename
>> -x,--exit             run script and exit
>>    
>>
>
>Though not related to command line args, is there a method that can be
>used to make Jmol not put things when called from Java code?
>
>So for example, when I bring up the viewer, it will output stuff like
>the version, JDK version etc. Is it possible to suppress that?
>
>-------------------------------------------------------------------
>Rajarshi Guha <[EMAIL PROTECTED]>
>GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
>-------------------------------------------------------------------
>Artificial intelligence has the same relation to intelligence as
>artificial flowers have to flowers.
>-- David Parnas
>
>
>
>-------------------------------------------------------------------------
>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-developers mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-developers
>  
>

-------------------------------------------------------------------------
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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to