Apple News, Analysis and Podcasts

Terminal Tip: Change Grab's Default File Format

September 1, 2011 14:56 by: Karl Johnson   0 Comments

Categories: Mac Applications , Terminal

Tagged: Grab

Few people have used the Terminal application and even fewer understand it. The goal of this new series of articles at T-GAAP will teach Mac users to use the Terminal and its commands to change the way the Mac OS runs.

The Terminal gives users access to some pretty powerful tools inside the Mac OS. These tools allow you to get under the hood of the OS engine in a new way. The first article will give just a taste of the power inside the Terminal application.

Grab is a tiny application that can take screen grabs or pictures of what one sees on the screen. Apple gives some default shortcuts to access Grab without even launching the application. Use command+shift+4 to grab a selection of the screen and save it to the Desktop. The problem with Grab is that the default file format is PNG. While this is a nice file format, JPG is the dominant picture format for most people. There is no way to change this default file format within Grab, but there is a way to change it with the Terminal application.

The first step is to launch Terminal, which is in the Applications/Utilities folder. Once the Terminal is launched, copy and paste the following information into the Terminal command prompt.

defaults write com.apple.screencapture type jpg

This command tells Apple's screen capture utility to change it's default file format. The last word is the command that defines the file format, which in this case is jpg. Other file formats include pdf, tif, and psd. To change it back to png, copy and paste the following in the Terminal.

defaults write com.apple.screencapture type png

Once it has been pasted into command in the Terminal, hit the enter key to run the command. The computer may need to be restarted in order to activate the new default.

This gives just a taste of the power inside the Terminal. Future articles will go into the basic usage of the Terminal, more commands to modify the Mac OS, and other powerful utilities already included in the Mac OS.
 

 

0 Comments

Leave your reply

*
*
What is 7 + 8?
Comment
* = required field