Groovy: Select all
{ source, target ->
// custom list of tags
def tags = allOf{ y }{ hd }{ genre }
// write plist to xattr
target.xattr.'com.apple.metadata:_kMDItemUserTags' = XML{
plist(version:'1.0') {
array {
tags.each{ string(it) }
}
}
}
}
