open_application
Open an application, or if it’s already running, bring it into focus.
Available since
open_application
is available since Karabiner-Elements 15.0.19.
{
"to": [
{
"software_function": {
"open_application": { "bundle_identifier": "com.apple.Safari" }
}
}
]
}
Name | Required | Description |
---|---|---|
bundle_identifier |
Optional | The bundle identifier of the application |
file_path |
Optional | The file path of the application |
Notes
- Either
bundle_identifier
orfile_path
must be specified. - If both are specified,
bundle_identifier
takes precedence, andfile_path
is ignored.
How to find the bundle identifier or file path
You can find the bundle identifier and file path in EventViewer > Frontmost Application.Examples
Open EventViewer by right command + v
:
{
"type": "basic",
"from": {
"key_code": "v",
"modifiers": {
"mandatory": ["right_command"],
"optional": ["caps_lock"]
}
},
"to": [
{
"software_function": {
"open_application": {
"file_path": "/Applications/Karabiner-EventViewer.app"
}
}
}
]
}