the system command pbpaste does that, you can call it with `pbpaste` from inside ruby :)

Elia


☁ @elia (twitter) ✎ elia@schito.me (gtalk)
☎ (+39) 348/9051393  perlelia@gmail.com (FaceTime)



On Wed, Oct 3, 2012 at 1:01 AM, Steven Arnold <thoth_amon@mac.com> wrote:
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