Topics |
URL commands are URLs utilizing LaunchBar’s custom “x-launchbar” URL scheme. They can be used to display large text messages, to select items in LaunchBar, to run command line tools in background, to trigger commands from the Services menu, and more.
You can open such URLs using “open location” in AppleScripts, using the “open” command in Shell Scripts, or by creating search templates with this scheme.
The large-type command can be used to display arbitrary strings in large type. Multiple lines can be separated with a backslash character.
The select command can be used to select arbitrary items in LaunchBar:
The execute command allows to create search templates that refer to local Unix Executables or Shell Scripts. In contrast to running these commands directly, the search template executes them in background so that no Terminal window opens to show their stdout.
x-launchbar:execute?path=/usr/local/bin/MyScript&argument=*
x-launchbar:execute?path=/usr/bin/open&arguments=-a+%22*%22
The calculate command can be used to send arbitrary arithmetic expressions to LaunchBar. The result of the expression is then evaluated with LaunchBar’s built-in Calculator and displayed in large type.
See the Calculator chapter, section “Invoking Calculator from external applications” for details.
The hide command can be used in AppleScripts to hide LaunchBar.
open location "x-launchbar:hide"