Selection of Wi-Fi using AppleScript in Big Sur
It seems I've found the problem. The issue is that the selection of the element, rather than returning &quot;kat&quot;, it returns &quot;kat, secure network, 2 bars&quot; and that is why &quot;ends with&quot; or &quot;equals&quot; does not work. To fix that I can use &quot;starts with&quot; but adding a comma after YOUR_SSID_HERE.