I have created an app that enables Wi-Fi.
It begins with:
set status to do shell script "networksetup -getairportpower en0"
With Wi-Fi now enabled, what AppleScript code do I add to that script that will make my App connect to a particular SSID?
I have created an app that enables Wi-Fi.
It begins with:
set status to do shell script "networksetup -getairportpower en0"
With Wi-Fi now enabled, what AppleScript code do I add to that script that will make my App connect to a particular SSID?
networksetup
has a
-setairportnetwork
command that should work for this. See the
networksetup
man page for details.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"