Hi,
Someone on Macrumors helped me write an automator workflow to for a control-click option to save to my dropbox folder, but also to remove certain metadata (so that I didn't have duplicate tagged documents, etc).
I don't want to mess anything up, can someone edit this code for my OneDrive folder? Would you just interchange Dropbox for "OneDrive"?
Thank you so much!
Someone on Macrumors helped me write an automator workflow to for a control-click option to save to my dropbox folder, but also to remove certain metadata (so that I didn't have duplicate tagged documents, etc).
I don't want to mess anything up, can someone edit this code for my OneDrive folder? Would you just interchange Dropbox for "OneDrive"?
Thank you so much!
Code:
for FILE in "$@";do
FILE_NAME="${FILE##*/}"
if [ -d "$FILE" ]; then
rsync -rut "$FILE"/ /tmp/"$FILE_NAME"
xattr -rc /tmp/"$FILE_NAME"
rsync -rut /tmp/"$FILE_NAME"/ ~/Dropbox/"$FILE_NAME"
rm -r /tmp/"$FILE_NAME"/
else
rsync -ut "$FILE" /tmp/"$FILE_NAME"
xattr -c /tmp/"$FILE_NAME"
rsync -ut /tmp/"$FILE_NAME" ~/Dropbox/"$FILE_NAME"
rm /tmp/"$FILE_NAME"
fi
done
Last edited by a moderator: