LaunchBar input window is not dismissed

Sharing and discussing custom actions for LaunchBar
wj313
Posts: 2
Joined: Fri Aug 12, 2016 4:12 pm

LaunchBar input window is not dismissed

Postby wj313 » Fri Aug 12, 2016 4:27 pm

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

wj313
Posts: 2
Joined: Fri Aug 12, 2016 4:12 pm

Re: LaunchBar input window is not dismissed

Postby wj313 » Tue Aug 16, 2016 8:35 am

Figured out a workaround:

Add to helloworld():

Code: Select all

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


Return to “LaunchBar Actions”

Who is online

Users browsing this forum: No registered users and 1 guest