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


Click here to return to the '10.6: Rename screenshots with Automator and AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Rename screenshots with Automator and AppleScript
Authored by: DamnItsHot on Dec 07, '09 10:53:42AM

Why not just use Automator's 'Take Screenshot' in a service which lets you specify the name, place etc... (or 'screencapture' in shell script to get a little more control if you prefer) when you actually take the screenshot. I do the former and add '_' + 'YearMonthDay' to file name to make sure they are always sequential. It avoids the desktop mess.

Note: To change screen capture behavior:
defaults write com.apple.screencapture name "New FileName"
killall SystemUIServer

defaults write com.apple.screencapture location "New Path"
killall SystemUIServer

defaults write com.apple.screencapture type [new format] // supports pdf, jpeg, tiff - default is png
killall SystemUIServer

jOhn

Edited on Dec 07, '09 10:56:00AM by DamnItsHot



[ Reply to This | # ]
10.6: Rename screenshots with Automator and AppleScript
Authored by: drudus on May 09, '10 04:00:09PM

Genius, I love defaults write.

The above commands make a of the need for the script redundant (if not all of it).



[ Reply to This | # ]