Ruby Value Paste Here

Sharing and discussing custom actions for LaunchBar
beerich
Rank 3
Rank 3
Posts: 159
Joined: Thu Apr 05, 2007 11:05 am
Location: Toronto

Ruby Value Paste Here

Postby beerich » Fri Sep 14, 2018 6:21 am

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

beerich
Rank 3
Rank 3
Posts: 159
Joined: Thu Apr 05, 2007 11:05 am
Location: Toronto

Re: Ruby Value Paste Here

Postby beerich » Wed Sep 19, 2018 8:50 pm

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


Return to “LaunchBar Actions”

Who is online

Users browsing this forum: No registered users and 0 guests