Categories
Software Tech

Mac Tip: Change Screen Capture Format With Terminal

Remember how easy it is to screen capture on a Mac?

Cmd + Shift + 3

to take a picture of your Entire active screen.

While

cmd + Shift + 4

gives you some crosshairs that allow you to select what you want to copy.

Only problem is, the files are always saved as .png files. This is annoying if you want them in another format like .jpg. Normally you’d have to open your image editor of choice and then re-save it.

Turns out there is an easier way though!

All you have to do is run this Terminal Command

defaults write com.apple.screencapture type jpg

then restart your computer. Now every time you take a screenshot it will be in .jpg format.

If you want your screenshots in other formats like gif, png, or even pdf just change it in the terminal.

Via TUAW

Categories
OpenSource Software Tech

Mac and Linux Tip: Bulk Rename File Extensions With Terminal and/or Shell

How To: Bulk Rename File Extensions With Terminal/Shell

Lets say you have a bunch of .jpg files that you know are actually .rar files.

What would be the simplest way to rename them all?

First you’d navigate to the directory that contains the .jpg files with the “cd” command

For brevity lets assume the only .jpg files in this directory are .jpg files that you want to change

All you have to do is run this command

mv *.jpg *.rar

And all the .jpg files will have been renamed to .rar

If you want to learn more about the “mv” command just type in

man mv