Friday, January 28, 2022

#1 2021-03-11 06:39:42 pm

mouse
Member
Registered: 2021-03-11
Posts: 2

Removing A Menu Bar Item

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.

Thanks!

Model: MacBook Pro M1
AppleScript: AppleScript (2.7)
Browser: Safari 605.1.15
Operating System: macOS 10.14

Offline

 

#2 2021-03-12 06:12:00 am

KniazidisR
Member
From:: Greece
Registered: 2019-03-03
Posts: 2208

Re: Removing A Menu Bar Item

I am on Catalina. This way I can automate hiding/showing Wi-Fi icon on my Mac:

Applescript:


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


Model: MacBook Pro
OS X: Catalina 10.15.7
Web Browser: Safari 14.1
Ram: 4 GB

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)