hammerspoon2-docs
    Preparing search index...

    Function findDeviceByName

    • Find the first audio device whose name matches the given string.

      Parameters

      • name: string

        The device name to search for

      Returns HSAudioDevice | null

      An HSAudioDevice if found, null otherwise