Bob,
I think this would be really useful to me. It will save me coding
for the new viewer interface we talked about. I probably won't be
back on the project until after January, but things are looking
pretty promising that I will be able to rejoin then from this end.
Maybe we should talk off-list about details.
Jonathan
On Nov 27, 2007, at 11:10 AM, jmol-users-
[EMAIL PROTECTED] wrote:
> Message: 2
> Date: Mon, 26 Nov 2007 00:15:46 -0600
> From: Bob Hanson <[EMAIL PROTECTED]>
> Subject: [Jmol-users] Jmol 11.3.48 -- zip file support
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Nico will soon release 11.3.48. One very new feature I would like
> feedback on:
>
> 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:
>
> load test.zip|model1.mol
> script test.zip|myscript.spt
>
>
> The | there tells Jmol that the indicated files are in test.zip.
>
>
> load 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:
>
> #JmolManifest
>
> file1.mol
> file2.pdb
> file3.xyz
> file4.pdb
>
> etc.
>
> 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")
>
> or just
>
> 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:
>
> print getProperty("fileContents",
> "benzenevib.spardir.zip|benzenevib.spardir/M0001/proparc")
>
>
> Does this sound reasonable?
>
> Bob
>
Dr. Jonathan H. Gutow
Chemistry Department [EMAIL PROTECTED]
UW-Oshkosh Office:920-424-1326
800 Algoma Boulevard FAX:920-424-2042
Oshkosh, WI 54901
http://www.uwosh.edu/faculty_staff/gutow/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users