Automated step export script to fixed file name

 From:  lapaev
6645.1 
Hey guys,
I usually bounce around software quite a bit don't trust those auto send scripts in any software, so I was wondering if someone can point me to an example script on how to export from moi to a fixed named file with a hotkey, for example, hit button and it would save selected object to a desktop as "test.stp".

And import that file with another hotkey.

I looked around here but there is no solid documentation on scripting :) Found Obj exporting one but couldn't figure out how to modify it to save as step.

Thank you