[GastForen

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Forenindex -- Lesezeichen

1 Lesezeichen für namespace

Script mit XMP Export: Bildbewertung
Hallo buehda,

Antwort auf: Immerhin hab ich jetzt rausgefunden, dass meine Bewertungen, die ich den Bildern in Bridge zugewiesen habe, in folgendem Namespace gespeichert sind: http://ns.adobe.com/xap/1.0/


Gegeben ein Link a_link kannst Du das Rating damit folgendermaßen ermitteln.
Code
a_link.linkXmp.getProperty("http://ns.adobe.com/xap/1.0/", "xmp:Rating"); 


Beispiel:
Code
var _rating = new Array; 
var _links = app.activeDocument.links;
for (var i = 0; i < _links.length; i++)
{
try
{
_rating.push(_links[i].name + ': ' + _links[i].linkXmp.getProperty("http://ns.adobe.com/xap/1.0/", "xmp:Rating"));
}
catch(e)
{
_rating.push(_links[i].name + ': ' + e);
}
}
alert( 'Rating:\n' + _rating.join('\n'));


Siehe auch Storing custom data into InDesign file via XMP und die Links

Extract Metadata with Adobe XMP [Part 1]
Extract Metadata with Adobe XMP [Part 2]
Extract file preview stored in Adobe XMP data
Fill InDesign XMP info from document content
...
Martin Fischer
29. Feb 2012, 08:04