Terminal Hacks - Set Screenshot's Default File Name

The macOS Screenshot application saves screenshots using a predefined naming convention [Screenshot YYYY-MM-DD at HH.MM.SS]. This LectroHack will show you how you customise this with your own text.

LECTROHACK #7 Terminal Hacks: Set Screenshot's Default File Name artwork.
LECTROHACK #7 Terminal Hacks: Set Screenshot's Default File Name artwork.

Change Default File Name

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste the following whereby the name that a screenshot will be allocated is enclosed in the double quotes ""…

defaults write com.apple.screencapture name "Capture"

(return)

New screenshots will now adopt this new naming scheme. It will still include the date and time at the end to help distinguish between captures.


Revert Back to the Default File Name

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste the following…

defaults delete com.apple.screencapture name; killall SystemUIServer

(return)

Originally posted 15 January, 2025.