Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Script to automatically enter document metadata

$
0
0

Thanks, that seems to be working.

 

This is what I have:

var myDocument = app.activeDocument;

with (myDocument.metadataPreferences){

        author = "Department of Human Services";

        documentTitle = myDocument.name.split(".indd")[0];

        }

 

Is there any way that the script can be run automatically without going to the script panel, so once the document has been saved?

 

Also, is it possible to split the name of the document title into 2 different fields. So for example I save my document as:

"1234.1234 Document Name_D1"

 

I want the documentTitle to be "Document Name" (this is variable depending on what I save the doc as) and the keywords field to be the first part of the name so "1234.1234" - this is the product code which also appears on the actual document itself.

 

Thanks again


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>