I work on the command line quite a bit and often have to take a screenshot a region of the screen and save it to directory I am currently working in.
(let's assume I've already taken the screenshot and clipboard has it).
This is how I have to do it right now (after have the screenshot in clipboard):
- launch Preview.
- in Preview, ⌘ + N (File, New from Clipboard) creates a new file with the clipboard contents.
- go back to command line and copy the directory name (copy the results of
- go to Preview, ⌘ + S for Save. Type
/gets me a directory navigation prompt where I can paste my directory name from step 3.
- Finally, give the actual file name, this_is_where_I_get_the_error.png in my example.
I'd like to do this instead:
How would I go about writing that
savemyscreenshot command? In bash? As an Automator script (which has to be callable from the Terminal, else that defeats the purpose somewhat)?
env: MacOS Sierra