the system command pbpaste does that, you can call it with `pbpaste` from inside ruby :)
Hello, I would like to create a command that in part pastes the contents of the clipboard, using TextMate 2. How would one access the contents of the clipboard in a command? I am using Ruby, but I am open to whatever works.
Thanks in advance,
steven
_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate