Wish: File menu: "Open Containing Folder" - in R6

I have many folders, with different folder structures and when opening files in multiple Rhino instances, I often need to open the containing folder of one of the instances and…

I find no such command in Rhino. (Grasshopper has it, in the File menu. That’s how it’s done. Adult approach).

It could just (quietly) sneak in, in the next SR. Please.

// Rolf

1 Like

That should be fairly easily scripted with a few lines of code…

1 Like

Yes. I actually added a button to my customized panel. It seems it good enough to just call _Open in any instance, since each instance knows which file was last opened. So it works with _Open.

// Rolf

import rhinoscriptsyntax as rs
import os

path=rs.DocumentPath()
if path:
    path=os.path.realpath(path)
    os.startfile(path)
else:
    rs.MessageBox("File not saved - no containing folder!!",64)
1 Like