I’m trying to create a double clickable Rhino script that will open a Windows file path that has been copied to the clipboard. Since Rhinoscipt itself didn’t let me do that when there were any spaces in the path, I resorted to Rhinocommon to avoid the command line treating spaces like the enter key. Though I can assign the following as a toolbar button macro:
CLIPBOARD = System.Windows.Forms.Clipboard.GetText()
…I cannot get it to run as a normal EditScript editor program since the parenthesis fails to allow a multiline Python script. I’m using Python since I’m used to invoking Rhinocommon with it.
Rhino.Command “-RunPythonScript (
…says Microsoft VBScript compilation error, unterminated string constant."
It’s especially frustraring since Rhinoscript is evidently itself written in Python.
This is necessary since saved Python script files associated with Rhino via default program assignment fail to run when double clicked.
I don’t want to have to maintain a separate Python file anyway, and again that causes issues with space characters in the path from within a EditScript program. I’m even confused what EditScript language is beyond being able to invoke Rhinoscript commands.