To get copy/paste to play nice in OSX you have to go through some Herculean tasks. I made it work with netcat yesterday. I was running an http server to do it :)
I know what you mean. I translated that to a python script a while ago for myself so I could stick it on other boxes without having to compile it. It's now a gist – https://gist.github.com/chirayuk/5377283