Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to create uniquely-named screenshots' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to create uniquely-named screenshots
Authored by: beccles on Oct 05, '06 06:01:07PM
To make it easier to change the fileformat, I added a variable
EXTENS="jpg"

So that FILENAME becomes
FILENAME="Screenshot $TIME.$EXTENS"

and the screencapture arguments become
-t$EXTENS

The original script suggested changing the file name extension would change the fileformat, but the command argument had -tpng. I don't know that changing the file extension would override the png argument ??

[ Reply to This | # ]