DEV Community

Brisbane Web Developer
Brisbane Web Developer

Posted on

Amend Location Changer not working with macOS Sequoia (macOS 15.0 (24A335))

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
Enter fullscreen mode Exit fullscreen mode

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'`
Enter fullscreen mode Exit fullscreen mode

References

Top comments (0)