Script no longer gets SSID. macOS 14.4 Sonoma
set mySSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/{print substr($0, index($0, $2))}'"
set feedback to display dialog ("You are currently connected to:
WiFi SSID: " & mySSID as string) & ".
I used to see: "WiFi SSID: <current SSID>. Where <current SSID> is the wifi I am connected to.
Now I see: "Wifi SSID ."
This happened after the update to macOS 14.4 Sonoma.
Can anyone point me to the problem or suggest a correction that will work on macOS 14.4>
MacBook Pro 16″, macOS 14.4