I used to use this automator right click menu for all kinds of services. It allowed me to save a file or folder to another location (replace any existing version) and stripped meta data like tags from the file.
After upgrading to 10.9.4 this code is no longer removing tag data. Is there something wrong with it or does 10.9.4 remove xattr utility?
After upgrading to 10.9.4 this code is no longer removing tag data. Is there something wrong with it or does 10.9.4 remove xattr utility?
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