Page 1 of 1

How to hide LaunchBar when executing an AppleScript?

Posted: Thu Sep 08, 2011 7:59 pm
by dbyler
When executing an interactive AppleScript (specifically the Snooze script for OmniFocus), LaunchBar doesn't hide itself. Unfortunately, if any LB results are showing besides the one currently executing, LB may obscure the script dialog box (see attached screenshot).

I see this is "new" behavior as of This version of the script calls the hide URI before the dialog box is shown, but it doesn't have an effect on LaunchBar.

Also, I'd prefer not to use LB-specific code when many users are using other shortcut tools to launch the scripts (I use FastScripts for this).

What's the best way to handle this?

Re: How to hide LaunchBar when executing an AppleScript?

Posted: Fri Oct 14, 2011 7:46 pm
by Was
I *think* you can make LB hide when doing this by holding down alt while executing the script while LB. It works for me with the iPhone Sync action (which otherwise leaves LB hanging until the sync has finished).

Re: How to hide LaunchBar when executing an AppleScript?

Posted: Sat Oct 15, 2011 1:26 am
by signupsammy
Unless I'm misunderstanding something, adding this line at the beginning of your script (below "on run" or "on handle_string")

tell application "LaunchBar" to hide

Hope that works for you.