Skip to main content
Loic.Aigon
Brainiac
February 9, 2023
Question

XMP replace works manually but fails with doc.metadataPreferences.replace() only for a property

  • February 9, 2023
  • 1 reply
  • 542 views

Hi all,

 

Either I am missing the obvious or is it a bug, I hope you have an idea. I have a XMP file that I want to replace current metadata within InDesign document. My replacement routine (doc.metadataPreferences.replace()) works as most of the properties are updated.

 

However there is one that stays untouched and I can't figure why. The property is the xmpRights:Marked field which in the UI stands for Copyright status. The documentation states that this value is a boolean (True>copyrighted, False>Public Domain). But there is a third state which is "unknown" and documentation says that in this case, you can omit the property.

 

Allright, allright, so I update XMP file to delete property and I get to the point: That updated xmp file will change the xmpRights:Marked value if I load this file manually. However, the same file loaded with metadataPreferences.replace(xmpFile, true) doesn't affect the UI value nor the XMP structure.

 

Hence my questioning of a possible bug. Has anyone any experience on resetting this particular xmp field?

 

Loic

This topic has been closed for replies.

1 reply

Community Expert
February 11, 2023

This sounds like a bug if it works via UI but not via script. @Rishabh_Tiwari could you get some help/info on this one please.

-Manan

Loic.Aigon
Brainiac
February 13, 2023

Thanks @Manan Joshi for the concern.

Rishabh_Tiwari
Community Manager
Community Manager
February 13, 2023

Hi @Loic.Aigon 

 

Thank you for reaching out and highlighting this. I'll escalate this to the team and update this discussion as soon as I hear from the team.

 

Thank you @Manan Joshi, for tagging. 

 

Regards

Rishabh