Title
#general
Rick Sanchez

Rick Sanchez

05/01/2018, 5:23 PM
Bumping this.
obelisk

obelisk

05/01/2018, 7:31 PM
So there isn't currently, however the data is available from the system if you would like to add it. In wifi.mm it shows the plist that is read for that data: /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist There is a key in there for PreferredOrder. You can read that in and add a number to each Row if you'd like then just sortby
Rick Sanchez

Rick Sanchez

05/01/2018, 7:36 PM
Thanks for the info! hmm how would you go about reading that via OSQuery?
obelisk

obelisk

05/01/2018, 8:00 PM
It goes like this:
select wifi_networks.* from wifi_networks join (select subkey position, rtrim(substr(value, 12), '>') hex_name from preferences where domain = '/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist' and key = 'PreferredOrder' and host = 'current') where hex_name = ssid ORDER BY position;
8:00 PM
Then you win
8:01 PM
Turns out it doesn't require a codemod 😛
Rick Sanchez

Rick Sanchez

05/01/2018, 8:08 PM
oh man, thank you
obelisk

obelisk

05/01/2018, 8:08 PM
No problem 🙂