Search found 2 matches

by nikjft
Fri Aug 22, 2014 6:46 am
Forum: LaunchBar Actions
Topic: text manipulating action to remove unwanted text needed
Replies: 2
Views: 1893

Re: text manipulating action to remove unwanted text needed

Sounds like a job for regular expressions. Here's an approach in Ruby:

Code: Select all

#!/usr/bin/ruby
srx = /[^|]+|.+?\]/
smatch = ARGV.join(' ').match(srx).to_s + ']'
`open "x-launchbar:select?string=#{smatch}"`
by nikjft
Mon Jul 14, 2014 5:30 pm
Forum: LaunchBar Actions
Topic: How to have an action return a selection of files
Replies: 5
Views: 10492

How to have an action return a selection of files

I'm trying to build an action that will list all the scripts specific to a certain application. The problem I'm having is that when I set a selection, it's just a bunch of aliases, not actual files. I could go through and create children, but when I do that, I end up with roughly the same thing unle...