This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run in terminal | |
defaults write com.apple.dashboard mcx-disabled -boolean true | |
# Then reload the dock | |
killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run | |
try | |
set airport_status to do shell script "networksetup -getairportpower en1" | |
on error | |
display dialog "The script did't work, please check the 'networksetup' command (in terminal) works on your system. " buttons {"kthxbai"} | |
end try | |
if airport_status is "Wi-Fi Power (en1): On" then | |
do shell script "networksetup -setairportpower en1 off" | |
do shell script "networksetup -setairportpower en1 on" |