Close ScriptEditor with code / command?

Hello,

does anybody know a way to close the ScriptEditior without using the GUI?

Background: I use VSCode with the wonderful RhinoCode extension. To make sure the extension finds my Rhino instance, I run _ScriptEditor on Rhinos start (specified in the settings). Now while this works perfectly, I always have to close the ScriptEditor window manually - which gets anoying.

Any tips? :slight_smile:

Hi Johannes,

I found the command StartScriptServer that might be what you can use.

Or run the hyphened version of the scripteditor.
Maybe you need to run a dummy script to actually trigger a start.
_-ScriptEditor _R "C:\path\to\script.py"

Oh wow. StartScriptServer works wonderfully! Thanks