Page 1 of 1

Ruby Value Paste Here

Posted: Fri Sep 14, 2018 6:21 am
by beerich
Hi folks.

I'm creating video clips that I want to name individually. Basically use Ruby or Bash to generate a uuid value as a string, copy that to the clipboard, then paste that "wherever I am now", or current focus.

Any insight how I can do that? Generating the uuid isn't the issue. It's sending it to the clipboard as a string, then pasting/returning that value to the current focus that's the challenge.

Cheers

Re: Ruby Value Paste Here

Posted: Wed Sep 19, 2018 8:50 pm
by beerich
Well, I made a Ruby script that puts a UUID into the clipboard as a string.

How can I use Ruby to "paste clipboard in current focus"? Initiated by Ruby, basically telling the Finder to paste. Or Launchbar to "Paste in Frontmost Application".

Can this be done? Best way?

Cheers