Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please preserve OSX tags #145

Open
carlwarnick opened this issue Sep 7, 2015 · 1 comment
Open

Please preserve OSX tags #145

carlwarnick opened this issue Sep 7, 2015 · 1 comment

Comments

@carlwarnick
Copy link

I use the operating system's tags to store information (for example watched or unwatched, who has watched show, etc.) about an .mp4 file. If you convert a file it strips those tags. It would be better if we could preserve those operating system tags (labels). Thanks.

@nicholaelaw
Copy link

I do not know how to add this function to MetaZ, but I know how to do this on the commandline: xattr

Here's part of my script to copy over tags:

finderInfo=$(xattr -px com.apple.FinderInfo "$inFile")
userTags=$(xattr -px com.apple.metadata:_kMDItemUserTags "$inFile")
xattr -wx com.apple.metadata:_kMDItemUserTags "$userTags" "$outFile"
xattr -wx com.apple.FinderInfo "$finderInfo" "$outFile"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants