Fix MacBook Pro Touch Bar flickering with Automator
MacBook Pro Flickering TouchBar Issue (Poss. Fix)
Poss. TouchBar Flickering Fix using Automator:
1.) Open automator.app using Spotlight (press ⌘ + spacebar and type automator.app, press return)
2.) Select Application, press choose
3.) In search bar, type shell
4.) Double click on Run Shell Script
5.) Set the following settings: Shell: /bin/bash ; Pass input: as arguments
6.) Paste the following script in the box/cell below:
if pgrep TouchBarServer >/dev/null; then
pkill TouchBarServer
pkill ControlStrip
afplay /System/Library/Sounds/Pop.aiff
osascript -e 'display dialog "Touch Bar Disabled" buttons {"OK"} giving up after 2'
else
open /System/Library/CoreServices/TouchBarServer.app
afplay /System/Library/Sounds/Glass.aiff
osascript -e 'display dialog "Touch Bar Enabled" buttons {"OK"} giving up after 2'
fi
7.) Click on File dropdown menu, Click Save and Save as: Touch Bar Switch.app, Where: Applications
8.) press ⌘ + spacebar and type Touch Bar Switch.app, press return
Touch Bar Switch application will now run the script. This script acts as a simple toggle for the macOS Touch Bar. It first checks whether the system process that controls the Touch Bar (TouchBarServer) is currently running. If it is running, the script stops the Touch Bar by terminating both the TouchBarServer and ControlStrip processes, effectively disabling the Touch Bar, and then displays a notification confirming that it has been turned off. If the Touch Bar is not running, the script restarts it by launching the built-in TouchBarServer.app and shows a notification indicating that the Touch Bar has been enabled. In short, running the script once turns the Touch Bar off, and running it again turns it back on.
Hope this helps.
Disclaimer: This script toggles the macOS Touch Bar by stopping and restarting built-in system processes (TouchBarServer and ControlStrip). It does not modify system files or permanently disable the Touch Bar, and any changes last only for the current user session. On newer versions of macOS, visual notifications may not appear when the script is run via Automator due to system restrictions; however, the script may still function correctly. Apple system updates, sleep, logout, or reboot may automatically restart the Touch Bar. Use this script at your own discretion, and note that behavior may vary depending on macOS version and hardware.
MacBook Pro 13″