Last active
September 1, 2026 22:28
-
-
Save kjyv/1b55058ac17d70273e23485965375814 to your computer and use it in GitHub Desktop.
Hide macOS Finder quick action panel for common file types
This file contains hidden or 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
| #!/bin/bash | |
| set -u | |
| plist=~/Library/Preferences/com.apple.finder.plist | |
| ensure_dict() { | |
| plutil -insert "$1" -dictionary "$plist" 2>/dev/null || true | |
| } | |
| ensure_dict PreviewPaneSettings | |
| for key in "com\.apple\.application" "public\.font" "public\.folder" "public\.html" "com\.adobe\.pdf" "public\.audio" "public\.text" "public\.movie" "com\.apple\.alias-file" "public\.image" "public\.archive" "public\.item"; do | |
| ensure_dict "PreviewPaneSettings.$key" | |
| plutil -replace "PreviewPaneSettings.$key.showQuickActions" -bool NO "$plist" | |
| done | |
| # Finder caches PreviewPaneSettings in memory at launch, so it has to be | |
| # restarted before any of this takes effect. | |
| killall Finder |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've updated it, it should also work for your case. Hope it's still useful after all those years :)