brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: defaults write com.apple.screencapture location moves macos screenshots to a folder

macOS
~/tips/tip-macos-defaults-screencapture-location

defaults write com.apple.screencapture location ~/Screenshots

Changes the folder where macOS saves screenshots with one preference command.

My Desktop fills up with screenshots quickly. One setting sends them somewhere else.

mkdir -p ~/Screenshots
defaults write com.apple.screencapture location ~/Screenshots
killall SystemUIServer

defaults write stores the folder in the screencapture preferences. The killall SystemUIServer line makes the system read the value again, and the change then applies to the next screenshot. Create the folder first, which is what the mkdir line does.

To go back, run defaults delete com.apple.screencapture location and restart SystemUIServer again. The same trick with defaults write com.apple.screencapture type jpg changes the file format. defaults read com.apple.screencapture shows all the values that are set.

Further reading: defaults manual page

More macOS tips System Settings > Accessibility > Hover Text > When using the pointer A Smart Folder in Notes collects notes by tag, checklist or date Type # in a Mac note to tag it, then filter by tag in the sidebar tmutil isexcluded ~/Projects/app/node_modules Crop an image in Preview by dragging a frame and clicking Crop All macOS tips (99) All topics

Link