macOS' translucency can be either pleasant or irritating, depending on the foreground app and active wallpaper. But when I'm making a screen recording, I never want translucency (which Apple still stubbornly calls transparency, which it is not). Switching it in System Settings is a pain, so I wrote a macro to ease my burden (of course I did!)
The following macro toggles "reduced transparency" on and off, and pops up a notification as to the new state when done. It's triggered with Shift-Control-X, and I included a second trigger for Shift-Control-Option-X that simply displays the current setting without changing anything.
It will probably only work on Sonoma, as it has to use GUI Scripting to get the task done and I have no idea if Apple rearranged things from Ventura to Sonoma. (I first tried modifying the defaults file directly, but there's something that gets "tickled" by the change being made in System Settings; without that tickling, sometimes things get wonky.)
Download Macro(s): Toggle reduced transparency.kmmacros (43 KB)
Macro screenshot
Macro notes
- Macros are always disabled when imported into the Keyboard Maestro Editor.
- The user must ensure the macro is enabled.
- The user must also ensure the macro's parent macro-group is enabled.
System information
- macOS 14.4.1
- Keyboard Maestro v11.0.2
It's a little thing, but any time I can exchange mouse plus click plus mouse repeat for a keyboard shortcut, I'll do so! 
-rob.
2 Likes
Nearly two years later, and I needed this on macOS Tahoe. So here's a revised version; I don't know if it works on Sonoma any more (so I'll leave the first version posted), but it does work on both Sequoia and Tahoe.
And as much as I hate Tahoe, they did do one thing right:
checkbox "Reduce transparency" of group 1 of scroll area 1 of group 1 of...
Compare that to Sequioa:
checkbox 6 of group 1 of scroll area 1 of group 1 of...
They have finally applied names to the checkboxes in System Settings! This will help (a bit) in making scripts more robust; they will no longer break just because Apple changed the order of items on the page. (They will still break if they make bigger changes, because everything else is still number-based.) Baby steps, baby steps.
Anyway, here's the revised macro. I also learned about direct access via x-apple.systempreferences URL structures, and this cures the "macro dies if System Settings is open" problem. So the macro no longer quits System Settings before it runs; it will quit it if it wasn't open when you ran the macro, otherwise it leaves it as is.
Download Macro(s): Toggle reduced transparency v2.kmmacros (44 KB)
Macro screenshot
Macro notes
- Macros are always disabled when imported into the Keyboard Maestro Editor.
- The user must ensure the macro is enabled.
- The user must also ensure the macro's parent macro-group is enabled.
System information
- macOS 15.7.5
- Keyboard Maestro v11.0.4
Thanks to Claude for writing the code to parse the OS versions; that kind of thing is beyond my meager AppleScript skills.
-rob.
Ignore all of the above ... the macOS Shortcuts app has a transparency toggler:
Drag that into the shortcut area, change Turn to Toggle, and you're done. I set a hot key and had it show in the menu bar.
Sigh.
-rob.
1 Like