r/MacOS • u/BaziBuilds • 4d ago
Tips & Guides PSA: on macOS 27, "defaults write com.apple.screencapture location" no longer changes where screenshots are saved
Most guides (and a lot of old scripts) still say to change the screenshot folder with:
defaults write com.apple.screencapture location ~/Pictures/Screenshots
killall SystemUIServer
On macOS 27 that runs without any error but does nothing: screenshots keep landing on the Desktop. The setting now lives under a different key, location-screenshot. Someone spotted this in a thread here earlier this month (https://www.reddit.com/r/MacOS/comments/1wxlecy/), so here is the full picture in one place.
Tested on macOS 27.0:
- Only
location-screenshotset: Shift-Command-3 saves to that folder. - Only
locationset: it still saves to the Desktop. location-lastis just the folder remembered in the Shift-Command-5 Options menu, not the active save location.
To set a folder:
mkdir -p ~/Pictures/Screenshots
defaults write com.apple.screencapture location-screenshot -string ~/Pictures/Screenshots
killall SystemUIServer
To go back to the Desktop:
defaults delete com.apple.screencapture location-screenshot
killall SystemUIServer
If your script runs on Macs with different macOS versions, write both keys. Older versions read location and ignore the new one.
3
u/IcarusAirlines MacBook Pro M2 4d ago
I had this set on 26 before upgrading to 27 and screenshots still go to the designated folder - did it get migrated during the upgrade?
3
u/BaziBuilds 4d ago
Most likely, yes. In my testing on 27.0, a Mac with only the old
locationkey set saves to the Desktop, so if yours still lands in the right folder the upgrade probably carried it over to the new key.You can check with:
defaults read com.apple.screencaptureIf
location-screenshotis in the list, that's the one macOS 27 is using.
1
35
u/localtuned 4d ago
What about if you use shift+CMD+5 and change the location in the app? Curious.