Page 1 of 1

LaunchBar input window is not dismissed

Posted: Fri Aug 12, 2016 4:27 pm
by wj313
Dear forum,

I've created a very simple action with the Action Editor that should return a list of items, which should trigger an inline function. However, after I select the action item of my action, the inline functions gets called (which is ok), but the LaunchBar input window is still opened and get's not dismissed.

The Javascript of the the action looks like this:

Code: Select all

function run(argument) {
   return [{ title: 'hello', action: "helloworld", actionRunsInBackground: true}];
}

function helloworld() {
   LaunchBar.debugLog('Hello world!');
}



The action itself has this properties enabled:
Enable Debug Log
Returns result (Item)
Keep window active (dependency of Returns result)

The action works, but everytime I trigger this action I have to hit <ESC> to dismiss the LaunchBar input window which is quite annoying.

Setting the property actionRunsInBackground to false has no effect.

Versions:
Action Editor: 1.0
LaunchBar: 6.7.1

Any hints?

Kind regards

Re: LaunchBar input window is not dismissed

Posted: Tue Aug 16, 2016 8:35 am
by wj313
Figured out a workaround:

Add to helloworld():

Code: Select all

LaunchBar.executeAppleScript('tell application "LaunchBar" to hide');