Copy link to clipboard
Copied
Hello again
Hope this isn't too dumb a question.
I asked myself whether the result of
app.activeDocument.metadataPreferences;
is an XMPMeta object as per the "JavaScript Tools Guide".
I'd say yes, because I found examples where the previous statement is followed by
myDocXMP.setProperty(destNamespace, destNodeName, nodeValue);
But I'd also say no, because when I try
myDocXMP.deleteProperty(destNamespace, 'CreatorTool');
in ExtendScript Toolkit I get an error message saying "myDocXMP.deleteProperty is not a function".
The more I read, the more I get confused. Can you help me finding a source of information suitable for beginners? Thank you very much.
Giordano
Hi,
metadatapreferences does not offer method deleteProperty()
Have a look: http://jongware.mit.edu/idcsjs5.5/pc_MetadataPreference.html
Those methods belong to lib:AdobeXMPScript.
It's not as easy to handle so. Did you try another tool as exiftool from commadline ...¿
Copy link to clipboard
Copied
Hi,
metadatapreferences does not offer method deleteProperty()
Have a look: http://jongware.mit.edu/idcsjs5.5/pc_MetadataPreference.html
Those methods belong to lib:AdobeXMPScript.
It's not as easy to handle so. Did you try another tool as exiftool from commadline ...¿
Copy link to clipboard
Copied
Hi
Thank you very much, I read the page and bookmarked the whole resource. I also visited the ExifTool homepage.
Now I think I understand that metadataPreferences just happens to have a setProperty method but has nothing to do with XMPMeta objects that only exist in the context of the Adobe XMP Script library.
I apologize for having messed things up.
Giordano