# Set location

Set default screenshot location.

  • Tested on macOS:
    • Big Sur
    • Catalina
    • Mojave
  • Parameter type: string

# Set to ~/Desktop (default value)

defaults write com.apple.screencapture "location" -string "~/Desktop" && killall SystemUIServer

# Set to ~/Pictures

defaults write com.apple.screencapture "location" -string "~/Pictures" && killall SystemUIServer

# Read current value

defaults read com.apple.screencapture "location"

# Reset to default value

defaults delete com.apple.screencapture "location" && killall SystemUIServer