Creat Ań apple script that will turn off my wifi
- User
Creat Ań apple script that will turn off my wifi
- Assistant
Certainly! Here is an AppleScript that will disable your Wi-Fi. This script makes use of the
networksetupcommand to turn off the Wi-Fi on your Mac.do shell script "networksetup -setairportpower airport off" with administrator privilegesHow to Use the Script:
-
Open the Script Editor application on your Mac (you can find it using Spotlight search or in the Applications > Utilities folder).
-
Copy and paste the above script into the Script Editor.
-
Click the Compile button (hammer icon) to check the script for syntax errors.
-
Save the script by going to File > Save, and choose a location where you want to save it. You can also choose to save the script as an application if you want to be able to run it directly from the Finder.
-