Skip to content

Instantly share code, notes, and snippets.

@kevinberny
Last active January 4, 2016 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinberny/8546389 to your computer and use it in GitHub Desktop.
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
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