Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error when appending xmp template

Guru ,
Jul 23, 2006 Jul 23, 2006
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
TOPICS
Scripting
553
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jul 23, 2006 Jul 23, 2006
LATEST
I found a workaround. I made a copy of the tif file and extracted the data from the copy. After getting that to work, I was then able to add the metadata to the thumbnail without the need to create the xmp template.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines