I think I have to replace the following 3 commands in Maya:
No just define a new global porc SaveScene in mel.
2.If the source mel scripts of Maya2009 can be modified,
how can I register my SaveScene() to Maya to replace the original save scene routine?
just run the proc into memory. Last run procedure definition overwrites the old one and thus takes precedence. So if you run:
global proc SaveScene(){
print "yeah well im not allowing you to save anything trough the GUI";
}
Now you MAY actually want to redefine SaveSceneAs too:
global proc SaveSceneAs(){
print "yeah well im STILL not allowing you to save anything trough the GUI";
}
Thats it. So just put them in any file and make sure that file gets sourced in user prefs as deferred. Or indeed at any time you want to take over the default procs.
OR
since SaveScene is a run time command just redefine the runtime command to point somewhere else. This allows you to do minimal developent as you could just append the functionality you need.