.obj export SELECTED

does anyone know of a script that will allow one to export only the selected mesh as an .obj file?

the exporter which comes with blender exports the entire scene.
or will it export only the visible objects if i hide everything i don’t want to be exported?..

may have just answered my own question