mac screenshot jpeg code example Example: macbook change screenshot to jpg defaults write com.apple.screencapture type jpg;killall SystemUIServer