Last active
January 4, 2016 01:09
-
-
Save kevinberny/8546389 to your computer and use it in GitHub Desktop.
MacOS X script to setup a desktop folder for all new screen shots and to move existing Screen Shots to this folder. Created for a coworker and wrapped in an app
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
tell application "Finder" | |
set p to path to desktop -- Or whatever path you want | |
make new folder at p with properties {name:"ScreenCaps"} | |
end tell | |
do shell script "defaults write com.apple.screencapture type -string png" | |
do shell script "defaults write com.apple.screencapture disable-shadow -boolean-neg" | |
do shell script "defaults write com.apple.screencapture location ~/Desktop/ScreenCaps" | |
tell application "System Events" | |
move (every file of desktop folder whose name starts with "Screen Shot") to "~/Desktop/ScreenCaps" | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment