Run Scripts with parameters?

General discussions about LaunchBar
lala
Posts: 1
Joined: Tue Jul 25, 2017 10:50 am

Run Scripts with parameters?

Postby lala » Tue Jul 25, 2017 10:59 am

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

BuddyOwen
Posts: 4
Joined: Tue Jul 19, 2016 3:17 pm

Re: Run Scripts with parameters?

Postby BuddyOwen » Wed Jul 26, 2017 12:47 pm

Nope. Never had that


Return to “LaunchBar General”

Who is online

Users browsing this forum: No registered users and 8 guests