Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wfriedwald

macrumors 6502a
Original poster
Jan 1, 2017
523
48
Can someone give me some terminal commands to enable me to do the following:

1. save screenshots as JPEGs - rather than PNGs.

2. Also - to save them in this folder:

Annex5_14Tb/WF stuff/WF Pictures [5A]/screenshots

(attached is a screenshot of a screenshot to illustrate the folder hierarchy.)

thanks!




folder hierarchy for screen shots Screenshot 2023-10-21 at 12.25.15 PM.png


thanks as always, hey!

W
 

auxbuss

macrumors 6502
Feb 18, 2014
453
329
UK
This changes the save-type to jpeg:
Code:
defaults write com.apple.screencapture type jpg
To revert to the default, use:
Code:
defaults delete com.apple.screencapture type

It's worth running this first to check the current settings for screen capture:
Code:
defaults read com.apple.screencapture

fwiw, to convert an image these days, you can use Finder's right-click/Quick Actions/Convert Image.

The easiest way to change the save location is via the screenshot options… no really ;-) You can find them via ⌘⇧5
 
  • Like
Reactions: chabig

wfriedwald

macrumors 6502a
Original poster
Jan 1, 2017
523
48
thanks very much! Here are the terminal results:


Last login: Sat Oct 21 09:14:36 on console


willfriedwald@Wills-MacBook-Air ~ % defaults read com.apple.screencapture


{


"last-analytics-stamp" = "719440414.296229";


"last-selection" = {


Height = 675;


Width = 1080;


X = 180;


Y = "112.5";


};


"last-selection-display" = 0;


location = "/Volumes/Annex5_14TB/WF Stuff/WF Pictures [5A]/screenshots";


"location-last" = "/Volumes/Annex5_14TB/WF Stuff/WF Pictures [5A]/screenshots";


target = file;


}


willfriedwald@Wills-MacBook-Air ~ %

---------------
so YES, it DOES seem to work! thanks very much as always!

w
 

Diskutant

macrumors 6502
Jun 1, 2019
431
430
just in case fyi: cmd+shift+5 there you can set some these options without using the terminal
 

wfriedwald

macrumors 6502a
Original poster
Jan 1, 2017
523
48
thank you guys for these very excellent suggestions!

PS: I was not familiar with ONYX - but it looks like a very useful utility. I shall give it a try! thanks!
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.