Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On OS X you can manage your wireless networks; that is drag them to set preferred order, delete ones you don't want any more, etc.

The only problem is that there is a tiny window which only shows ~4 networks at a time.

Is there some way to be able to see more of the networks at once, and perhaps sort by name?

enter image description here

share|improve this question
1  
If you ever wondered how I know about all those obscure configuration files, here's an explanation ;-) –  Daniel Beck Nov 12 '11 at 7:57
    
I actually did wonder about that. Thanks for sharing. –  cwd Nov 14 '11 at 13:21
add comment

1 Answer

up vote 3 down vote accepted

There is absolutely no way to change the layout of that dialog. As it doesn't support custom sorting and resizing, you can't change that.


But the source for this list is accessible from the following file:

/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist

You can open/read the file in any text editor, Property List Editor/Xcode 4, PlistBuddy or defaults.

To get the full list of networks:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | grep SSIDString | cut -d= -f2 | cut -d';' -f1

To also sort the list of network names case-insensitively:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | grep SSIDString | cut -d= -f2 | cut -d';' -f1 | sort -f

To print both the network name and the security type (like in the list), use:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | grep -E "(SSIDString|SecurityType)" | cut -d= -f2 | sed -e 'N;s/\n/ /' -e 's|;||g'

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.