XMP Template ActionsΒΆ

Constant Value Description
kXMPTmplClearUnnamed 16 Deletes top-level properties. Any top-level property that is present in the template (even with empty value) is retained. All other top-level properties in the working object are deleted.
kXMPTmplAddNew 8 Adds new properties to the working object if the template properties have values.
kXMPTmplReplaceExisting 2 Replaces the values of existing top-level properties in the target if the value forms match those in the template. Properties with empty values in the template are ignored. If combined with kXMPTmplClearUnnamed or kXMPTmplAddNew, those take precedence; values are cleared or added, rather than replaced.
kXMPTmplReplaceDeleteEmpty 4 Replaces values in the same way as kXMPTmplReplaceExisting, and also deletes properties if the value in the template is empty. If combined with kXMPTmplClearUnnamed or kXMPTmplAddNew, those take precedence; values are cleared or added, rather than replaced.
kXMPTmplIncludeInternal 1 Operate on internal properties as well as external properties.