i used use automator code make copy of file or folder , send onedrive folder while removing data such tags don't have duplicate tags.
starting 10.9.3 script (which part of automator workflow) stopped working:
file in "$@";do
file_name="${file##*/}"
if [ -d "$file" ];
rsync -rut "$file"/ /tmp/"$file_name"
xattr -rc /tmp/"$file_name"
rsync -rut /tmp/"$file_name"/ ~/onedrive/"$file_name"
rm -r /tmp/"$file_name"/
else
rsync -ut "$file" /tmp/"$file_name"
xattr -c /tmp/"$file_name"
rsync -ut /tmp/"$file_name" ~/onedrive/"$file_name"
rm /tmp/"$file_name"
fi
done
could write new xattr portion command remove tags or @ least write generic code remove tags? me much. used every day.
-
- file size:
- 177.7 kb
- views:
- 26
Forums Macs macOS OS X Mavericks (10.9)
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment