Greetings,
I am trying to perform a bulk operation via ASP that removes a given keyword from any assets that contain it. I have no problem matching the assets and looping over the set, but am having no luck with actually removing the offending keyword. I am using the code below based on what I found in the script API reference.
This code returns no errors, but has no effect on the keywords for each asset.
Any pointers are most appreciated.
War-N Harrison
' FOR LOOP OVER MATCHING ASSETS
aTest = Array("living quarters") ' array containing keyword to remove
Set objMeta = objPhoto.MetaDataItem(dictMBMetadata("keywords")) ' dictMBMetadata holds IDs of metadata
objPhoto.MetaDataItem(dictMBMetadata("keywords")).RemoveValue aTest
Set objColl = mbSession.CreateObjectCollection()
objColl.Add(objPhoto.MetaDataItem(dictMBMetadata("keywords")))
objPhoto.ReviseMetaData objColl
' NEXT