From: Bob Hanson <hansonr@st...> - 2007-11-26 06:15:56
Nico will soon release 11.3.48. One very new feature I would like
Would it be valuable to be able to put a bunch of models and scripts in
a ZIP (or JAR) file and then access them directly from that? Sort of
like packaging several models in one XYZ file, but you get to mix and
match files, scripts, text, etc. You can do that now using:
The | there tells Jmol that the indicated files are in test.zip.
by itself loads ALL models in test.zip. They will be read in the order
delivered by the ZIP file unless you add a text file called JmolManifest
to that ZIP file. There you list the specifc files you want read, in the
order you want them read:
OR, you can add the manifest on the command line and override any
JmolManifest that might be in there:
load test.zip MANIFEST "file1.mol|file2.pdb|file3.xyz|file4.pdb"
In addition, we might want to explore the contents of a zip file, so now
you can use
print getProperty("fileContents", "myfile.jar")
to see the table of contents of myfile.jar. And you can get
subdirectories and contents of specific files:
print getProperty("fileContents", "myfile.jar", "org/jmol/")
print getProperty("fileContents", "myfile.jar", "file1.mol")
print getProperty("fileContents", "myfile.jar|org/jmol/")
print getProperty("fileContents", "myfile.jar|file1.mol")
Note that this means that model files that are natively ZIP format
(MacSpartan06) can be explored directly:
Does this sound reasonable?
Robert M. Hanson
Professor of Chemistry
St. Olaf College
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