hammerspoon2-docs
    Preparing search index...

    Function configurationSetLocation

    • Switches the active network location to the one with the given name or UUID. Pass the location's display name (e.g. "Home") or its UUID from configurationLocations(). The change is applied immediately. Returns false if the location was not found or the preferences could not be committed (e.g. insufficient privileges).

      Parameters

      • location: string

        A location display name or UUID string.

      Returns boolean

      true if the location was changed successfully, false otherwise.