Need Some Help? Have a Tip to Share?

Email me at MacTipper@gmail.com, or, leave a comment!

Subscribe To Our FREE RSS Feed!

Don't miss out on any posts from the Concise MacTipper Blog.

Wednesday, September 30, 2009

Immediately Open Screenshot in Preview

I recently wanted a way to take a screenshot and automatically open the image in Preview. Fortunately, this is quite simple to do. You have two options. The first is to use Terminal. The basic command for this is:

screencapture -P /Path/To/File.png


However, if I only want this temporarily, I'll save it to my TMP folder:

screencapture -P ~/Library/Caches/TemporaryItems/image.png


If you want to screencapture only a selection of the screen, use the "i" flag:

screencapture -iP ~/Library/Caches/TemporaryItems/image.png



The other method is to use Automator. Simply create an Automator workflow with the "Take Screenshot" function followed by the "Open Image in Preview" function. The advantage of the Automator workflow is that you can use variables to create time-stamped names for your files.

0 comments:

Post a Comment