open_application

Open an application, or if it’s already running, bring it into focus.

{
    "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

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"
                }
            }
        }
    ]
}