creating a "Save" node

Hello,

could you please give me a hint on where to look in the code in order to generate a “save” node?
I want to simulate clicking on the the “save” button (File->Save) within a node.
What would be also useful would be an “export” node that is basically implemented with the -destFile option in BATCH mode…

Thanks
B