When running a wifi router in a public space, the least congested channel will offer the best performance. Use this script for Apple computers to help you find that channel fast.
For live sound events I often use wifi to interact with computers and digital devices that control audio, video, and lighting. Having dedicated, reliable wifi is critical for successful productions, so I bring my own router with me to live events. This is the model I own and recommend.
All your [wifi] base belong to us.
WiFi is has become nearly ubiquitous. Networks are everywhere. The increasing number of public, private, commercial, and consumer grade broadcasts mean that the designated wifi spectrum is growing more crowded. Like lanes on a highway, there are a limited number of wifi channels to choose from. Car drivers try to avoid traffic and choose the least crowded lane on the road. Likewise, you will get the best wifi experience by “driving” in the least congested wifi channel.
Also available by Option-clicking on the WiFi icon in the menu bar and choosing Open Wireless Diagnostics…
Apple computers have a built in Wireless Diagnostics service with a sub program that recommends the best wifi channel. It’s hidden away in the system folder and I have a hard time remembering the exact clicks and keystrokes to find it. So I wrote an AppleScript that runs inside an Automator Service to make the exact window pop up when I need it.
This is how I wrote the script in Automator. Can you make it better?
This is the easiest way to get it in the right place:
- Download this ZIP file: Find-Best-Wireless-Channel.workflow.zip
- Double-click the ZIP file to unzip it.
- While still in the Finder, click Go to Folder… under the Go menubar item. Alternatively, press the key combination ⇧⌘G (Shift-Command-G).
- In the little window that drops down, type the following:
~/Library/Services
- Hit the ⎠(Return) key. The Finder will navigate directly to that folder.
- Copy or move the Find-Best-Wireless-Channel.workflow file to that folder.
This is place the file should be put.
Once you’ve put the workflow file into that folder, look for it under Finder > Services > General.
Mine has a key command assigned to it. See the note at the bottom about how to set that up.
When you click on the “Find Best Wireless Channel” service item the workflow will run and a you should be left with a window named “Scan” opened. The wireless networks that your Mac has found will be listed on the right. Look at the panel on the left.
The red circle is provided to direct your eyeballs where to look.
The best wifi channels will be listed at the bottom. Use these numbers to set your router’s wifi channel. Good luck!
Notes
OS Compatibility
This Automator service works on macOS Sierra. Depending on your current OS and any future OS updates, YMMV.
No Library?
If you can’t see your Library folder, follow the directions found here to unhide your Library.
Roll Your Own
For those of you that like to DIY, here’s the raw script.
tell application "Wireless Diagnostics"
activate
# opens Scan Window
tell application "System Events" to keystroke "4" using {command down, option down}
# brings Assistant Window to the front and closes it
tell application "System Events" to keystroke "1" using {command down, option down}
tell application "System Events" to keystroke "w" using {command down}
end tell
Keystroke Combo Power-Ups!
If you want to assign a key command to this workflow service like I did, open up  > System Preferences… > Keyboard > Shortcuts. In the left panel select Services and scroll down to the bottom of the right panel. Next to “Find Best Wireless Channel” click the word “none” and then the “Add Shortcut” button that appears. Press the combination of keys you want to trigger the workflow. Voilà !
Assign whatever key combination you like.
2 Comments >
There’s a first time for everything. This is not one of those times.
Blame it on entropy or whatever. Things get messed up. Apple’s OS X is no exception.
In the last few months, I started getting this error a lot:
You are opening the application ”Pro Tools” for the first time. Are you sure you want to open this application?
Except, it’s not true. I open Pro Tools nearly every day. The alert isn’t very important, but it was beginning to get annoying seeing this pop up every time I wanted to record.
So, a little googling and I found an answer on StackExchange. It involves using the command line on your Mac, which can be a bit scary if you’ve never done that before. But it’s a single command, so you should do just fine. Here’s the quick and dirty summary…
This is where the Matrix is on your Mac. There’s no green falling code or woman in the red dress. There may Agent Smiths lurking though.
The Fix
- Open the Terminal application (found in /Applications/Utilities/).
- Copy the following command (all of it… the whole long line) and paste it after the prompt.
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -all local,system,user
- Hit the Enter/Return key.
- The process will begin. It may take a minute or two to finish. Do not quit the Terminal application while the command is running.
- Eventually the process will complete and another prompt will appear. Now you can quit the Terminal app.
This command resets all of the first run warnings. So any application that requires that will be reset. So you should see the alert one more time for each of those applications and then it will go away for good.
1 Comment >
How to create custom cell formats in Apple Numbers.
I really like spreadsheets. Lately, I’ve been building spreadsheets about electronics stuff in Numbers, which is Apple’s version of Excel. I was curious about how to use custom cell formatting to display the correct unit abbreviations on values. Here’s how I did it for Ohms, the SI derived unit for electrical resistance.
- Click in the cell you want to format.
- Hitting Option (⌥) + Command (⌘) + I opens the Inspector window. It’s also available in the menu bar under View > Show Inspector.
- Click the Cells tab (it looks like a little 42 in a box).
- Under Cell Format heading choose Custom… from the drop down menu.
- In the Name field type “Ohms” (without the quotes).
- Make sure “Number & Text” is selected in the Type drop down menu.
- From the Number & Text Elements field drag the Decimals (.##) element into the field with the existing Integers (#,###) element in it.
- Add a space after the Decimals element, then type the symbol for Ohms, which is the omega character (Ω). The keyboard shortcut for this is Option (⌥) + Z.
- Click the plus (+) button on the right twice to add two more conditions.
- In the first added condition, select “If greater than or equal to …” from the drop down menu.
- In the field to the right of that drop down type “1000000” (one million without the quotes).
- In the element field below that, make sure there’s an Integers element, a Decimals element, a space, a Scale element set to Millions (M), and finally an omega.
- For the second condition you added do the exact same thing as above, but enter “1000” (one thousand without quotes) and set the Scale element to Thousands (K).
- If everything looks like the screenshot below, hit OK.
Now when you type a value into that field, it should automatically format into Ω, KΩ, and MΩ. If not, go to step 4 and double check that everything was entered correctly.
Your newly created formatting will be added to the Cell Format drop down. You can now select other cells and apply this custom formatting to them. The custom format will be saved in this Numbers file.
Try creating custom cell formats for other SI Units too.
No Comments >
An alternate method that might make your Bluetooth device connect with your iOS device.
Can’t get your Apple Bluetooth keyboard to pair with your iPhone, iPad, or iPod touch? I couldn’t either. My A1255 keyboard wouldn’t connect at all. The iPhone would find the keyboard, but wouldn’t update the name of it, nor ever present the four digit code for pairing. I could only get this error:
Pairing Unsuccessful
Make sure “Keyboard” is turned on, in range, and is ready to pair.
I tried a bunch of fixes I read about online and none of these worked in any combination nor configuration:
- turning Bluetooth off and on
- rebooting the iPhone
- holding the power button on the keyboard
- deleting other Bluetooth device pairing from the iPhone
- clicking ‘Forget This Device’
- connecting to another device and then my iPhone
- replacing the batteries
- holding the V, A, and R keys while powering on the keyboard
- turning off Bluetooth on any other nearby devices
It seems Bluetooth under iOS 7 is broken. Lots of people are having issues with Bluetooth on iOS 7 that weren’t there in older iOS versions. Unfortunately, Apple is apparently ignoring this problem.
The Fix
Here’s how I finally connected my keyboard to my iPhone.
- Switch off Bluetooth on iOS device under Settings > Bluetooth.
- Shut off the keyboard by pressing and holding the power button for 3 seconds.
- Switch on Bluetooth on iOS device.
- Turn on the keyboard by pressing and holding the power button until it green light blinks.
- The keyboard should appear listed under the DEVICES heading in the iPhone Bluetooth settings screen with “Not Paired” in gray next to it.
- Now at this point you’re supposed to just tap on the listed device on the iPhone to begin the pairing process, but when I would do that it would time out with the “Pairing Unsuccessful” alert. Here’s the trick: repeatedly tap on the listing (maybe 5-6 times) and hopefully the “Bluetooth Pairing Request” alert will appear with the four digit code you’ll need to enter.
- The pairing may fail the first time. Try again.
- I also found that subsequent attempts to connect after forgetting the device worked much better after that initial connection.
I hope this fix works for you. Let me know if it does.
11 Comments >