I have a script that extracts a private tag's data from a tif file and places that data in a custom namespace. It then writes a template xmp file to append to the tif file.
Everything works fine until I try to append the template. Then I get an error saying it can't because the file is being used by another process(my script).
This is my first bridge script and I'm at a loss as to what I'm doing wrong. The script opens the tif file in read mode and closes it before the code to append. The template file is also closed. Here is the part of the code that does the append. Does anyone know what I'm doing wrong?
md = sels.metadata;// sels = an array of selected thumbnails
var templateName = xmpName.match(/([^\.]+)/)[1]+""// = the tif filename without the extension
md.applyMetadataTemplate(templateName, "append");
Mike