Test and Toggle Wi-Fi in Sierra
Test and Toggle Wi-Fi in Sierra
- Subject: Test and Toggle Wi-Fi in Sierra
- From: Gil Dawson via AppleScript-Users <email@hidden>
- Date: Thu, 4 Jan 2024 12:34:44 -0800
I have an old Mini running Sierra (10.12.6) which I use as a personal
webserver. Once in a while it "loses" its Wi-Fi connection -- the familiar
symbol becomes blank. The fix is to turn off Wi-Fi, then turn it on again.
Simple.
This is a nuisance when I'm nowhere near the Mini yet want to use the server,
so I propose to write an AppleScript to do this automatically.
Periodically, every few minutes or so, it would check the Wi-Fi status. If
it's not connected, it would cycle the Wi-Fi.
Is this a practical project? Has it been done?
Any ideas on how to perceive the Wi-Fi status and control the Wi-Fi from an
AppleScript?
I've been looking at network preferences in the System Events sdef. Is there a
better topic?
--Gil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden