Skip to content

Instantly share code, notes, and snippets.

@elliott-beach
Last active February 24, 2017 02:04
Show Gist options
  • Save elliott-beach/f943a048c3b669747ed4d9c51e2a6a86 to your computer and use it in GitHub Desktop.
Save elliott-beach/f943a048c3b669747ed4d9c51e2a6a86 to your computer and use it in GitHub Desktop.
Get the most recent Screen Shot on OSX
# for convenience, get the most recent screen shot on osx
# might work for other OSs
screenshot=~/Desktop/$(ls -t ~/Desktop/ | grep "Screen Shot" | head -n 1)
# move it to currend working directory, and then do what you will.
mv "$screenshot" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment