I want to have the file path of a screenshot to be available in the clipboard to paste it directly into some text. Greenshot on Windows can do this in just one keyboard shortcut simultaneously taking the screenshot and putting its file path into the clipboard. How can this be done in Mac?
Take screenshot and copy its file path to clipboard
keyboardscreen capture
Related Question
- MacOS – Add Screenshots to Clipboard Along with Saving Files
- Script copy the content of the clipboard into a file
- Cannot save screenshot to file
- MacBook Pro – How to Screenshot to Clipboard by Default
- AppleScript Automator – Screenshot Folder Actions in Catalina
- How to paste a screenshot image from clipboard into a folder
Best Answer
You can assign a shortcut to a script like this:
One way to do that is to create a service in Automator:
Then give the service a keyboard shortcut from System Preferences.
If you just want to copy the path as text, replace the last line with
printf %s $f | pbcopy
.