>From a web page applet Jmol might be having problems dealing with shared
drives. I can check on that.


On Thu, Aug 7, 2014 at 3:35 AM, Rzepa, Henry S <h.rz...@imperial.ac.uk>
wrote:

> Whilst  I am on the topic, we have a long standing issue with file paths
> on  Windows.
>
> A script such as  x = file("?");load @x;
>
> will successfully load a file from a local hard drive, ie
>
> FileManager.getAtomSetCollectionFromFile(file:/C:/temp/C9_mo29.cub)
> FileManager opening 1 file:/C:/temp/C9_mo29.cub
>
>
as will

 x = load("?")




> But change the drive to a network drive, and one gets the following
>
> script ERROR:
> http://www.ch.ic.ac.uk/rzepa/cub2jvxl///icnas4.cc.ic.ac.uk/rzepa/strepto/C9_mo29.cub
>
> where you can see that the network drive is located on eg
> icnas4.cc.ic.ac.uk etc
>
> I understand Windows uses different path  protocols for local and network
> drives?
>
> Finally,  none of this load a local file stuff seems to work at all using
> JSmol?  Are there any plans there?
>

There is no way in JavaScript to request loading of a SPECIFIC file by
name. Think of the consequences!

Instead, you open a dialog that fetches the file and tells Jmol what the
name of the selected file was.


So I guess

 x= file("?")

is out for JavaScript.

Use

x = load("?")

to actually load the file. You will not know the name of the file that was
loaded (currently).

Bob





>
> Henry
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to