Script to automatically enter document metadata
i need enter document info metadata of indesign documents posted on web pdf docs wanted script automaticaly enter data once document has been saved. need 3 fields filled.
my document saved "1234.1234 document name_d1" , 3 fields need are:
document title: only wording after code , before underscore "document name"
author: is "company name"
keywords: only "1234.1234" before doc name
i'm not sure if @ possible if can done automatically using whole document name i'll take instead.
thanks,
dear rinapatch,
can please try below js code? may you.
var mydocument = app.activedocument; (mydocument.metadatapreferences){ author = "adobe"; copyrightinfourl = "http://www.adobe.com"; copyrightnotice = "this document copyrighted."; copyrightstatus = copyrightstatus.yes; description = "example of xmp metadata scripting in indesign cs"; documenttitle = "xmp example"; jobname = "xmp_example_2003"; keywords = ["animal", "mineral", "vegetable"]; var mynewcontainer = createcontaineritem("http://ns.adobe.com/xap/1.0/", "email"); setproperty("http://ns.adobe.com/xap/1.0/", "email/*[1]", "someone@adobe.com"); }
otherwise, please provide details clearly.
thx,
csm_phil
More discussions in InDesign Scripting
adobe
Comments
Post a Comment