• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Add Metadata in Illustrator

Enthusiast ,
Aug 28, 2018 Aug 28, 2018

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

test.png

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

TOPICS
Scripting

Views

1.1K

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 Expert ,
Aug 28, 2018 Aug 28, 2018

Copy link to clipboard

Copied

Votes

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
Enthusiast ,
Aug 29, 2018 Aug 29, 2018

Copy link to clipboard

Copied

LATEST

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.

Screen Shot 2018-08-29 at 2.33.58 PM.png

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

Votes

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