Is there a way to flash the screen from the command line? I am looking for the same effect that Accessibility does for "Flash the screen when an alert sound occurs", but I don't want it for every alert.
MacOS – How to flash screen from command line
accessibilityautomationcommand linemacos
Related Question
- Command Line Tools – Complete Install Guide for MacOS Xcode
- macOS – Fix Screen Flashing White When Bell Rings
- MacOS – Disable shift key slow animations from command line
- How to play audio files from command line
- Slack – Flash Screen for Slack Alerts on macOS
- Disable Xcode Command Line Tools – How to Disable Xcode Command Line Tools
Best Answer
As far as I know, you can't replicate this alert without enabling that option. If you do enable that option, you can cause a flash from Terminal using:
However, if you don't want to enable that option, you can use invert colours. Using the invert colours Accessibility option twice causes the screen to flash, therefore pressing the keyboard shortcut ⌃⌥⌘8 twice will cause a flash: