Indesign script – get xmp metadata for broken links
Hi All,
often I have to work with indesign documents at different locations and I have to deal with broken links.
My main problem is to get the credit-lines for missing images (usually JPeG-previews from adobe.stock.com) with a script. These are stored in the indd-file, even if the image-file is missing. See Example 2 below.
Is there a way to get this information by java script? Up to now I only could mange to
get these information for existing files with the code below (Example 1).
Can anyone help, please?
Thanks Thomas
Example 1 – my code to read xmp-info for existing files:
Example 2 – xmp-data for missing image taken from indd-file displayed with "less-command":
<x:xmpmeta xmlns:x=“adobe:ns:meta/“ x:xm
ptk=“Adobe XMP Core 5.6-c148 79.163765, 2019/01/24-18:11:46 „>
<rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#“>
<rdf:Description rdf:about=““
xmlns:dc=“http://purl.org/dc/elements/1.1/“
xmlns:tiff=“http://ns.adobe.com/tiff/1.0/“
xmlns:xmp=“http://ns.adobe.com/xap/1.0/“
xmlns:xmpMM=“http://ns.adobe.com/xap/1.0/mm/“
xmlns:xmpRights=“http://ns.adobe.com/xap/1.0/rights/“
xmlns:pur=“http://prismstandard.org/namespaces/prismusagerights/2.1/“
dc:format=“image/jpeg“
tiff:ResolutionUnit=“2“
tiff:XResolution=“50000/377“
tiff:YResolution=“50000/377“
xmp:CreateDate=“2011-03-23“
xmp:CreatorTool=“Adobe Stock Platform“
xmp:MetadataDate=“2019-09-12T08:37:23“
xmp:ModifyDate=“2011-03-23“
xmpMM:DocumentID=“30962553“
xmpMM:InstanceID=“Adobe Stock 30962553“
xmpRights:Marked=“True“>
<pur:creditLine>
<rdf:Bag>
<rdf:li>Mny-Jhee - stock.adobe.com</rdf:li>
</rdf:Bag>
</pur:creditLine>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
