hammerspoon2-docs
    Preparing search index...

    Function launchOrFocus

    • Launch an application, or give it focus if it's already running

      Parameters

      • bundleID: string

        A bundle identifier for the app to launch/focus (e.g. "com.apple.Safari")

      Returns Promise<boolean>

      A Promise that resolves to true if successful, false otherwise