I want to see if a Mac has every joined a particular wireless network by looking at the SSIDs. I can look at a particular key in a plist, but I can’t get the dictionaries inspector to work, and maybe I’m just holding it wrong.
This works, but the wifi identifier is a random ID (just keeping it to demonstrate functionality).
Q: data "SSIDString" of dictionary "wifi.ssid.<65647572 6f616d>" of dictionary "KnownNetworks" of dictionaries of file "/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist" A: eduroam
This does not:
Q: datas "SSIDString" of dictionaries of dictionary "KnownNetworks" of dictionaries of file "/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist" E: The operator "dictionaries" is not defined.
The plist looks like this (truncated):
<dict> <key>Counter</key> <integer>2</integer> <key>KnownNetworks</key> <dict> <key>wifi.ssid.<4d6f6e6b 65794661 6365></key> <dict> <key>SSIDString</key> <string>Kittens</string> </dict> <key>wifi.ssid.<65647572 6f616d></key> <dict> <key>SSIDString</key> <string>eduroam</string> </dict> <key>wifi.ssid.<526f7365 2d35475f 32474558 54></key> <dict> <key>SSIDString</key> <string>Puppies</string> </dict> </dict> </dict>
I can list these keys/dictionaries, but not directly:
Q: keys of dictionary "KnownNetworks" of dictionaries of file "/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist" A: wifi.ssid.<526f7365 2d35475f 32474558 54> A: wifi.ssid.<65647572 6f616d> A: wifi.ssid.<4d6f6e6b 65794661 6365>