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
if ! [[ $(plutil -convert xml1 -o - ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist | grep false) ]]; then | |
osascript <<EOD | |
tell application "System Events" to tell process "SystemUIServer" | |
key down option | |
click menu bar item 1 of menu bar 1 | |
key up option | |
end tell | |
EOD | |
fi |
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
if [[ $(plutil -convert xml1 -o - ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist | grep false) ]]; then | |
osascript <<EOD | |
tell application "System Events" to tell process "SystemUIServer" | |
key down option | |
click menu bar item 1 of menu bar 1 | |
key up option | |
end tell | |
EOD | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work for you in Mojave? I can't get it to option-click the Notification Center icon; it just registers as a standard click.