Suggestion/Request: copy/open folder when file is saved/exported

Hi all,

I have a little ease of use, nice to have feature suggestion.

It would be nice to copy the file location or open the folder with one click from the console after saving/exporting a file. It could look something like this:

Hi @simon9
Here is a quick script. Your request is doable with the command line options. I forgot how to do that as I’ve been away from scripting in Rhino for a long time.
This should get you started… copy and paste to an icon or run the script from the Vb editor
Also I don’t know if it will error if the file is not saved first so test on a test file first. It does copy the path to the clipboard too.

-RunScript (
Option Explicit
'Script written by
'Script version Monday, July 29, 2024 2:58:25 PM

Sub getFilePath_getfilename

Dim strName,strPath,strText,strFolder

Rhino.Command "_Save"

strName = Rhino.DocumentName
strPath = Rhino.DocumentPath
strText = Rhino.ClipboardText(strPath & strName)
rhino.Print "Path = " & strPath & " " & strName

strFolder = Rhino.BrowseForFolder(strPath)

If Not IsNull(strFolder) Then

	Rhino.Print strFolder

End If

End Sub
getFilePath_getfilename
)

fileSaveGotoDirectory.rvb (520 Bytes)
RM