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