Robert Hanson wrote:
> I think this is all fixed now. The sequence of execution is:
> 
> file load
> -J (Jmol script as argument)
> -s (script file name as argument)
> -j (Jmol script as argument)
> -x (exit)
> 
> The -n switch (no display) adds an implicit -x, and it is executed
> only after the final script is run. Basically what the -x switch does
> is add ";exitJmol" to any second script present.
> 
> So, for example, the following worked for me:
> 
>   jmol -ion -J "myparam = 3" -s "t.spt" -j "set echo top left;echo
> @myparam;cartoons on;write image 400 400 JPG \"t.jpg\";"  "1crn.pdb"
> 
There are still some problems in version 11.7.18 with the command-line
switches.

Now the script supplied with '-s' is not applied any more before the
image requested with "-w" is written. (no '-j' present)
This will break existing batch pipelines with Jmol.

If '-j' is also present the image doesn't even display the structure
(loaded within the '-j' script) but only "Jmol". And the image also
hasn't the size requested with '-g' but only the size of the "Jmol" text.

By the way, when I tried to compile the latest SVN version (revision
10492) I got the following error message:
    [javac] java/Jmol/src/org/jmol/export/image/ImageCreator.java:203:
cannot resolve symbol
    [javac] symbol  : constructor IOException (java.io.IOException)
    [javac] location: class java.io.IOException
    [javac]       throw new IOException(e);
    [javac]             ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 1 error

Regards,
Rolf

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to