Putting data on the clipboard in OS X

IO.popen('pbcopy', 'w').print "Text to go on clipboard"

source

Leave a Reply