macOS のスクリーンショットは初期設定だとデスクトップに溜まっていく。defaults write コマンドで、保存先・ファイル形式・影の有無を変えられる。撮るたびにデスクトップが散らかる問題はこれで解決する。
保存先を変える
専用フォルダに保存するようにする。先にフォルダを作っておく。
mkdir -p ~/Pictures/Screenshots
defaults write com.apple.screencapture location ~/Pictures/Screenshots
killall SystemUIServer
最後の killall SystemUIServer で設定が反映される。これを忘れると変更が効かない。
ファイル形式を変える
初期設定は PNG。ファイルサイズを抑えたいなら JPG にする。
defaults write com.apple.screencapture type jpg
killall SystemUIServer
指定できる形式は png jpg gif tiff pdf など。PNG に戻すなら type png を実行する。
ウィンドウ撮影の影を消す
ウィンドウを撮ると周りに大きな影が付く。これを消すと余白のないスッキリした画像になる。
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
影を戻すなら -bool false にする。なお、ウィンドウ撮影のときに option を押しながらクリックすると、設定を変えなくてもその一回だけ影なしで撮れる。
ファイル名のプレフィックスを変える
初期設定だと「スクリーンショット 2026-05-31 ...」のような名前になる。先頭の文字列を変えられる。
defaults write com.apple.screencapture name "shot"
killall SystemUIServer これで「shot 2026-05-31 ...」のような名前になる。
設定を元に戻す
変更した設定を初期状態に戻すには delete を使う。
defaults delete com.apple.screencapture location
defaults delete com.apple.screencapture type
defaults delete com.apple.screencapture disable-shadow
killall SystemUIServer 関連記事
よくある質問
- Macのスクリーンショットの保存先を変えるには?
- ターミナルで defaults write com.apple.screencapture location 保存先のパス を実行し、killall SystemUIServer で反映する。例: defaults write com.apple.screencapture location ~/Pictures/Screenshots
- MacのスクリーンショットをJPGで保存するには?
- defaults write com.apple.screencapture type jpg を実行し、killall SystemUIServer で反映する。png に戻すと元のPNG形式になる。
- Macのウィンドウ撮影で付く影を消すには?
- defaults write com.apple.screencapture disable-shadow -bool true を実行し、killall SystemUIServer で反映する。false に戻すと影が復活する。