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

Is the result of app.activeDocument.metadataPreferences an XMPMeta object?

Guest
Feb 15, 2013 Feb 15, 2013

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

TOPICS
Scripting

Views

824

Translate

Translate

Report

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

correct answers 1 Correct answer

Enthusiast , Feb 15, 2013 Feb 15, 2013

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 ...¿

Votes

Translate

Translate
Enthusiast ,
Feb 15, 2013 Feb 15, 2013

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 ...¿

Votes

Translate

Translate

Report

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
Guest
Feb 16, 2013 Feb 16, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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