Menu

#137 Directory Operation

closed
None
5
2008-10-09
2008-03-04
Anonymous
No

The commands for directory operation should be added in the script commands. For example, "cd", "dir" or "ls", "mkdir", etc. Or add the "system" command for invoking the operating system commands, which are widely supported by other script languages such as perl or python.
And it should be better that the returned values of the above commands can be stored in arrays for further use.

bgMa%at%sdut.edu.cn

Discussion

  • Nobody/Anonymous

    Logged In: NO

    This is an idea I've been thinking about as well. It's application-only (because applets can't read directories), so it has somewhat lower priority. Still, it's a good idea. I've certainly wished I had these commands at times.

    Bob Hanson

     
  • Bob Hanson

    Bob Hanson - 2008-10-08

    cd added in Jmol 11.7.2. "cd ?" pulls up a file dialog, effectively allowing the GUI equivalent of "dir/ls" and "mkdir".

    # new feature: cd command sets defaultDirectory
    # cd # reports current directory and sets default directory to that
    # cd ? # (signed applet and app only) opens a directory
    # cd .. # moves up one directory
    # cd temp # moves to subdirectory temp
    # cd "" # resets the default directory

     
  • Bob Hanson

    Bob Hanson - 2008-10-08
    • assigned_to: nobody --> hansonr
     
  • Bob Hanson

    Bob Hanson - 2008-10-09
    • status: open --> closed
     

Log in to post a comment.