Page 1 of 1

Run Scripts with parameters?

Posted: Tue Jul 25, 2017 10:59 am
by lala
Hi guys,

I'm new to LaunchBar and like it a lot. In my opinion there is only one problem to make it a perfect match for me:
I can't run my (groovy) scripts without popping up a terminal window.
Does anybody have the same problem or maybe even a solution for that?

Here some details:
1. I have a few groovy scripts doing things. Here is a possible example for testing:
---------

#!/usr/bin/env groovy
String argument = "https://google.de?q=${args[0]}";


String command = "open " + argument;
command.execute();

----------
2. I can call the scripts from my terminal with a parameter and it works fine.
3. I can call the script from launchbar with a parameter and it works, but it leaves an additional terminal window open ;-(
4. If I try to run it with alt-Key nothing happens.


Kind regards
Dom

Re: Run Scripts with parameters?

Posted: Wed Jul 26, 2017 12:47 pm
by BuddyOwen
Nope. Never had that