Hi, I was wondering if there was a way to remove the Wi-Fi icon from my menu bar. I’m hoping maybe there is just a series of shell scripts I can make my script do because that seems like it would work well in my application and easy to implement.
I am on Catalina. This way I can automate hiding/showing Wi-Fi icon on my Mac:
tell application "System Preferences"
reveal pane id "com.apple.preference.network"
activate
end tell
-- GUI scripting part
tell application "System Events" to tell process "System Preferences" to tell window "Network"
click checkbox "Show Wi-Fi status in menu bar" of group 1
end tell
tell application "System Preferences" to quit