Created
April 17, 2021 15:16
-
-
Save sudhakar6/638063098f1147fc957593f5004376b7 to your computer and use it in GitHub Desktop.
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
for f in "$@" | |
do | |
DEST="" | |
if [[ $f == *"Screenshot"* ]] | |
then | |
DEST=/Users/s.chintapalli/Dropbox/Screenshots | |
elif [[ $f == *"Screen Recording"* ]] | |
then | |
DEST="/Users/s.chintapalli/Desktop/Screen Recordings" | |
fi | |
if [[ $DEST != "" ]] | |
then | |
osascript -e "display notification \"Moved $f to $DEST\"" | |
mv $f $DEST | |
elif | |
then | |
osascript -e "display notification \"$f not moved\"" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment