finally catching up here....

Let's talk more about this. When you read a state script, you use the 
script command, so perhaps what we are talking about is an option that 
allows conversion of directories there. That said, you can do this:

  var x = 
load("myscript.spt").replace("file:/Volumes/nggroup/external/test/","../jmol/") 

  script inline @x
  x = none

Wouldn't this suffice? Anything else is just convenience, I think. By 
the way, that third line guarantees that x itself does not become part 
of the state. (VAR should do that as well, though).

Bob




Bob


Angel Herraez wrote:

>>Web: load /*file*/"http://chemapps.stolaf.edu/jmol/docs/examples-
>>11/data/quartz.cif" {1.0 1.0 1.0}; 
>>DW:load /*file*/"file:/Volumes/nggroup/external/test/histidine.cif"; 
>>(this is on Mac OS X) 
>>Both fixed paths.
>>    
>>
>
>
>Yes. I now remember seing this before, though I don't use state 
>often.
>The question is that since the Jmol app can load files from anywhere 
>in the local file system, it adds the full path to the state script, 
>even if Jmol and the model are in the same folder. So you basically 
>end up editing the state script file always.
>
>I think it would be more useful for general development if the saved 
>path was relative --at least when Jmol and the model are in the same 
>folder, or the model is in a subfolder below Jmol--. Of course, this 
>usefulness depends on what the developer has in mind, mainly moving 
>or publishing those files or just using them in the local computer 
>only.
>
>
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Jmol-users mailing list
>Jmol-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
Professor 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



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to