Last active
February 24, 2017 02:04
-
-
Save elliott-beach/f943a048c3b669747ed4d9c51e2a6a86 to your computer and use it in GitHub Desktop.
Get the most recent Screen Shot on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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