Last active
May 9, 2023 08:29
-
-
Save edenwaith/ade8c68f25225e9ca669ca22003e403b to your computer and use it in GitHub Desktop.
Move screenshots from the Desktop to a dedicated Screenshots folder.
This file contains 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
#!/bin/sh | |
# | |
# Maintenance script run on a weekly basis (controlled by launchd and the | |
# associated plist file located at ~/Library/LaunchAgents/local.cleanupdesktop.plist | |
# | |
# Move all screenshot files on the Desktop into the folder Screenshots | |
# Check for the existence of the Screenshots folder. Create it if it doesn't exist. | |
if [ ! -d ~/Desktop/Screenshots ]; then | |
mkdir ~/Desktop/Screenshots | |
fi | |
# Move all screenshot files to the Screenshots folder | |
mv ~/Desktop/*Screen\ Shot* ~/Desktop/Screenshots/ | |
mv ~/Desktop/Screenshot* ~/Desktop/Screenshots/ # Move screenshots taken by my tss script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment