Thread View: adobe.scripting.indesign
2 messages
2 total messages
Started by Martin Fischer
Tue, 24 Feb 2009 19:54
get metadata: RightsUsageTerms
Author: Martin Fischer
Date: Tue, 24 Feb 2009 19:54
Date: Tue, 24 Feb 2009 19:54
33 lines
1634 bytes
1634 bytes
Hello,
I would like to read the 'rights usage terms' out of the metadata of an image.
The city of the creator e.g. can be read out with this command:
app.documents.firstItem().links.firstItem().linkXmp.getProperty("http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/", "Iptc4xmpCore:CreatorContactInfo/Iptc4xmpCore:CiAdrCity");
But for the 'rights usage terms' this command doesn't word:
app.documents.firstItem().links.firstItem().linkXmp.getProperty("http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/", "Iptc4xmpCore:CreatorContactInfo/Iptc4xmpCore:RightsUsageTerms");
In the xmpSpecifications <http://www.aiim.org/documents/standards/xmpspecification.pdf> I could find the URI of the schema namespace <http://ns.adobe.com/xap/1.0/rights/> with the property 'xmpRights:UsageTerms'.
But
app.documents.firstItem().links.firstItem().linkXmp.getProperty("http://ns.adobe.com/xap/1.0/rights/", "xmpRights:UsageTerms");
doesn't give me an expected value.
Can somebody point me to the correct syntax to get the 'RightsUsageTerms'?
Martin Fischer
Re: get metadata of an image: RightsUsageTerms
Author: Martin Fischer
Date: Tue, 24 Feb 2009 21:04
Date: Tue, 24 Feb 2009 21:04
23 lines
1304 bytes
1304 bytes
Well I have found out that the data hides in a deeper node:
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.0-c006 1.236519, Wed Jun 14 2006 08:31:24">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xapRights="http://ns.adobe.com/xap/1.0/rights/">
<xapRights:UsageTerms>
<rdf:Alt>
<rdf:li xml:lang="x-default">It's free</rdf:li>
</rdf:Alt>
</xapRights:UsageTerms>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
But I couldn't find out yet how to adress the property rdf:li xml:lang="x-default".
Martin
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads