Question

Can anyone recommend a screen capture tool that can:

  1. save a capture as a file, and...

  2. copy the path to that file to the clipboard?

The first part is easy, but I can't find a utility that does the second part.

I dont need another app if there's a way to configure this using the built-in screen capture tool.

Was it helpful?

Solution

You could just assign a shortcut to a script like this:

#!/bin/bash

f=~/"Desktop/$(date '+%Y%m%d%H%M%S').png"
screencapture -i "$f"
echo -n "$f" | LC_CTYPE=UTF-8 pbcopy

See man strftime for a reference of the date format.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top