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

error on removing tags #55

Open
ghost opened this issue Sep 10, 2020 · 0 comments
Open

error on removing tags #55

ghost opened this issue Sep 10, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 10, 2020

@jdberry @tessarin

This command is working to reveal every file in the directory that has any tag.
tag --match '*' --recursive --tags /Volumes/PlexMedia

When I try to remove all of the tags I found I get an error:

$ tag --remove 'Green' --recursive /Volumes/PlexMedia
tag: The operation couldn’t be completed. (OSStatus error -5000.)

I first thought it could be an ownership issue. The volume didn't have "ignore ownership on this volume" selected. I checked that and ran the command again and received the same error. I then selected "apply to enclosed items" and ran the command again.

Is my command incorrect?

$ tag -r 'Green' -R /Volumes/PlexMedia
tag: The operation couldn’t be completed. (OSStatus error -5000.)

I am thinking I need to pass the found files to xargs but am having trouble with the syntax

$ tag --match '*' --recursive --tags /Volumes/PlexMedia | xargs -0 tag -r {}
$ tag --match '*' --recursive --tags /Volumes/PlexMedia | xargs -0 -I {} tag -r -R {}

$ tag --match '*' --recursive --tags /Volumes/PlexMedia | xargs -0 tag -r -R
tag: The item couldn’t be opened because the file name “The Big Short (2015) CD” is invalid.
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

0 participants