A script to create uniquely-named screenshots
Oct 05, '06 07:30:03AM
Contributed by: luomat
There are a few hints to manage screenshots, such as this one, but with the advent of the command-line screencapture command, this doesn't need to be so hard or complicated. What was I trying to do? I wanted to...
- Save each screenshot with a unique name
- Save the screenshot into ~/Pictures/
It turns out that this is simple to do with a shell script, which I made into an application using Script Editor and launch using LaunchBar.
This AppleScript will prompt you (as does Shift-Command-4) to select some
area to be captured. When captured, it will be saved to your user's Pictures folder, with the name as "Screenshot YYYY-MM-DD_hour.minute.second.png," and opened in Preview.app.
[robg adds: This previous hint used a script to grab a shot and open it immediately. This version adds the unique naming convention and changes the save location, and the script worked as described in my testing.]
Comments (7)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20060926235209265