Create new XMP metadata field

Contributor ,
Dec 13, 2021 Dec 13, 2021

Copy link to clipboard

Copied

Hih all,

 

Im new to Indesign SDK development, my requirement is create new field like Basic, Raw Data in the File info dilog. Any help is much appreciated.

TOPICS
SDK

Views

64

Likes

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
Adobe Community Professional ,
Dec 13, 2021 Dec 13, 2021

Copy link to clipboard

Copied

With Javascript you can use the get and setProperties method to add an XMP line

 

 

var md = app.activeDocument.metadataPreferences;
var ns = "http://ns.adobe.com/xap/1.0/"
var p = "MyMetaProperty"
var v = "Hello World"

md.setProperty(ns, p, v);

alert(md.getProperty(ns, p))

 

 

Screen Shot 15.png

Likes

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
Contributor ,
Dec 13, 2021 Dec 13, 2021

Copy link to clipboard

Copied

LATEST

Thanks Rob, my requirment is add new labels and fields in the file info dialog shown below

 

Screenshot 2021-12-14 at 12.03.19 AM.png

Likes

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