Actually I haven't ever worked with Mac. No, copying and pasting it right in blender text editor would not work. As far as it consists of one script and two modules.
I have an idea: you may try to launch file search and look for "export_map.py" or "3ds_export.py". These are standard Blender export scripts Blender is equipt with. My exporter files should be copied to the same folder.