Skip to content

Instantly share code, notes, and snippets.

@sudhakar6
Created April 17, 2021 15:16
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 sudhakar6/638063098f1147fc957593f5004376b7 to your computer and use it in GitHub Desktop.
Save sudhakar6/638063098f1147fc957593f5004376b7 to your computer and use it in GitHub Desktop.
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