You can use the Terminal command defaults read
on the .plist file which stores the screen capture settings to check the location and the graphic format of the screenshot file type:
defaults read com.apple.screencapture
{
type = jpg;
}
The output above is the default setting for macOS. If another location appears in the output, that's where the screenshots are going.
If you want to reset the destination back to your Desktop, execute this Terminal command:
defaults write com.apple.screencapture location /Users/[yourusername]/Desktop
Want to change the file type from JPEG to PDF?
defaults write com.apple.screencapture type pdf
Other file type qualifiers are tiff, png, and gif
.
To effect the defaults write
changes on your current user session, you must execute this command when you are done:
killall SystemUIServer
Info gleaned from LifeWire.
This happens when a window has contents that are rendered outside the windowserver. Mostly 2d/3d, video and modelling software might do this. Some applications do it on purpose, like the Apple DVD player.
Best Answer
Instead of
screencapture -s ~/Downloads/screen.png
source where-s
is fortry
-w
. It will show a camera icon and wait for you to select a window. Hit esc to cancel the process.I cannot say why
-s
doesn't work, but on Mojave, theman
page says