A macOS menu bar utility for Finder power users. Select a mix of files and folders in List View, then use a global hotkey to deselect just the folders (or just files with specific extensions) — useful when you want to copy/move only files without manually Cmd-clicking every folder out of your selection. Copy to clipboard filenames with or without their file sizes and optionally sorted. Copy to clipboard filenames of media with their durations and optionally sorted.
⌃⇧↑— Deselect folders from current selection⌃⇧↓— Deselect files matching configured extensions (default: jpg, pdf)⌃⇧←— Invert Selection⌃⇧→— Zip Selected Folders (no hidden MacOS files) .DS_Store, __MACOSX*⌃⇧⌥N— New Empty Text File⌃⇧C— Copy Filenames + Sizes + Media Durations Edit the extension list from the menu bar icon → "Edit Extensions…"
scripts to copy to clipboard to paste into Terminal System Info (copy) = report opens in TextEdit
download dmg from releases
xattr -d com.apple.quarantine /Applications/deselectfolders.appGrant Accessibility access when prompted (System Settings → Privacy & Security → Accessibility). zip folder wants access to control Finder
zip -r dir.zip . -x "*.DS_Store" -x "*__MACOSX*"
zip -r -q "$zipfile" "$folder" \
-x "*.DS_Store" \
-x "*/.DS_Store" \
-x "*/__MACOSX/*" \
-x "__MACOSX/*" \
-x "*/._*" \
-x "._*" \
-x "*/.AppleDouble/*" \
-x "*/.Spotlight-V100/*" \
-x "*/.Trashes/*" \
-x "*/.fseventsd/*" \
-x "*/.TemporaryItems/*" \
-x "*/.localized" \
-x "*/.VolumeIcon.icns" \
-x "*/Icon?"- macOS 11+
- Accessibility permission (prompted on first use)
- [librsvg] for building the app icon:
brew install librsvg
chmod +x build.sh
./build.shbuilding dmg, if accessibility permission issue arise
tccutil reset Accessibility com.mrfragger.deselectfolders ; tccutil reset AppleEvents com.mrfragger.deselectfolders ; ./build.shUses the macOS Accessibility API (AXUIElement) to inspect Finder's
List View outline, check which rows are selected, and identify folders
(via disclosure triangle) or file extensions (via filename), then
deselects matching rows. Hotkeys are registered globally via Carbon's
RegisterEventHotKey.

