I have limited access to Eclipse from Jamaica throughout January. In the mean time, you can use:
print load("initial-view.spt") > Dear Paul, > > How nice to hear from you! > > I had not noticed show FILE -- thank you for > pointing it out! However, I tried this from local > files (not on a server) with Jmol 11.3.63 and I get: > > show FILE "initial-view.spt" > pending > script 8 started > script ERROR: bad argument count > ----line 2 command 1 of file null: > show file "initial-view.spt" << > Script completed > Jmol script terminated > > On the other hand > > show FILE > > does work, messaging the entire PDB file currently loaded. > > I get the same "bad argument count" when Jmol 11.3.59 is on a server. > > Perhaps the "show FILE filepath" command is broken? > > -Eric > > At 1/13/08, you wrote: >>Hello Eric, I think that the "show file" command does what you expect. >> From the documentation : >>show FILE filepath >> >> Delivers the entire contents of the >> specified file on the server from which the >> applet was loaded. The filename must be >> relative to the current page (not necessarily >> the directory containing the applet) and must be enclosed in quotation >> marks. >> >>Paul >> >>Le 12 janv. 08 à 04:55, Eric Martz a écrit : >> >>>Sometimes I wish that, from javascript in the browser, I could ask >>>the Jmol applet to let me (javascript) peek into the contents of a >>>Jmol command script (.spt) file, preferably before I execute it. Is >>>there some way to do this? >>> >>>If not, do others think this would be useful? >>> >>>I'm envisioning something like this: >>> >>> message file myscript.spt >>> >>>Rather than executing the script, it would simply message the >>>contents of the .spt file. I could then parse the script and behave >>>accordingly. >>> >>>This would be somewhat along the lines of "show pdbheader", which >>>messages the PDB file header to the javascript messageCallback function. >>> >>>I am aware that the script file can set javascript variables using a >>>"javascript ..." script command. However, if the purpose of that is >>>to inform the browser that, for example, the script plays a movie, >>>it requires an additional knowledgable effort on the part of the >>>script file author. If I could just preview the contents of the >>>script file looking for e.g. delay or moveTo commands, I could tell >>>whether there is movie in the script without troubling the author of >>>the script file for (redundant) information in another form. >>> >>>-Eric >>------------------------------------------------------------------------- >>Check out the new SourceForge.net Marketplace. >>It's the best place to buy or sell services for >>just about anything Open Source. >>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>_______________________________________________ >>Jmol-users mailing list >>Jmol-users@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/jmol-users > > /* - - - - - - - - - - - - - - - - - - - - - - - - - - - > Eric Martz, Professor Emeritus, Dept Microbiology > U Mass, Amherst -- http://www.umass.edu/molvis/martz > > Top Five 3D MolVis Technologies http://Top5.MolviZ.Org > Biochem 3D Education Resources http://MolviZ.org > See 3D Molecules, Install Nothing! - http://firstglance.jmol.org > Protein Explorer - 3D Visualization: http://proteinexplorer.org > Workshops: http://workshops.proteinexplorer.org > World Index of Molecular Visualization Resources: http://molvisindex.org > ConSurf - Find Conserved Patches in Proteins: http://consurf.tau.ac.il > Atlas of Macromolecules: http://atlas.proteinexplorer.org > PDB Lite Macromolecule Finder: http://pdblite.org > Molecular Visualization EMail List (molvis-list): > http://bioinformatics.org/mailman/listinfo/molvis-list > - - - - - - - - - - - - - - - - - - - - - - - - - - - */ > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users