Summary
Location Changer stopped working after updating to macOS Sequoia (macOS 15.0 (24A335)).
Found that it gets this message
You are not associated with an AirPort network.
when fetching the current Wi-Fi network name.
Solution
This takes longer time to retrieve the current Wi-Fi network name, but I have not found another way so far.
1. Install jq for the next step:
brew install jq
2. Revise the way to extract the current Wi-Fi network
system_profiler SPAirPortDataType
displays the current network connection details and the option -json
does in JSON format which is easier to extract the Wi-Fi network name:
/usr/local/bin/locationchanger::Around the line 16
======
SSID=`system_profiler -json SPAirPortDataType | jq -r '.SPAirPortDataType[0].spairport_airport_interfaces[0].spairport_current_network_information._name'`
Top comments (0)