Copy link to clipboard
Copied
Hi All,
We need to add metadata to illustrator files.
Grab information from .csv and store it as variables like as below.
var _docTitle = "AAAAAA";
var _author = "Mr.XXX";
var _descrip = "CCCCC";
Try my best by using xmpFile, but not succeed.
My requirement is as like as below screenshot
In Photoshop (this should be straight forwarded):
app.activeDocument.info.caption= "bb";
app.activeDocument.info.captionWriter= "cc";
app.activeDocument.info.headline= "dd";
app.activeDocument.info.instructions= "ee";
Kindly help for the above request.
Thanks in Advance
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi Carlos,
Thank you for your quick reply...
It helps to show the direction.
I tried and got the most of the output except "Description Writer".
Please help to get the "Description Writer" syntax.
Success Code:
myXmp.deleteProperty( XMPConst.NS_DC, "title" );
myXmp.appendArrayItem( XMPConst.NS_DC, "title", "HEAD", 0, XMPConst.ARRAY_IS_ORDERED );
myXmp.deleteProperty( XMPConst.NS_DC, "creator" );
myXmp.appendArrayItem( XMPConst.NS_DC, "creator", "BBB", 0, XMPConst.ARRAY_IS_ORDERED );
myXmp.deleteProperty( XMPConst.NS_DC, "rights" );
myXmp.appendArrayItem( XMPConst.NS_DC, "rights", "CCC", 0, XMPConst.ARRAY_IS_ORDERED );
Thanks in Advance