Notifications
Clear all

[Closed] Open a script file thorugh scripting

I want to pop open a script file for editing in the max editor.
I tried a shelllaunch, but that just opened another copy of max, and didn’t open the file either.

Is it possible, or am I stuck with notepad?

4 Replies

newEditor = newscript()
format “hello world
” to:newEditor

don´t know if this helps, it´s the old editor.

Uhm,

EDIT “yourScriptName.ms”

?

Heh, heh,

Well whatdya know – I apropos’ed the hell out of this one, but just missed that in the help!

It might be nice to include a side-note about this in the windowstream topic, next to newScript(), as they’re like distant cousins or something.

Thanks bobo!

Let me return the favour then:

I learnt a useful tip in Vista yesterday. If you SHIFT+Right Click any file in any Explorer window (including open/save dialogs) you get an option “Copy as Path”, which gives you the full path to the file, including quotes!

"E:\05 - Scripting\MaxScript\projects\Animation\MD2 Exporter\MD2 Exporter 03.ms"

So useful!

Cheers,
Dave