adding metadata
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / adding metadata
Tagged: meta data
- This topic has 4 replies, 3 voices, and was last updated 8 years, 11 months ago by Loic Aigon.
-
AuthorPosts
-
-
May 19, 2015 at 4:35 am #75478Gert VerreptMember
Hi,
We often have to print docs on different types of paper and I was wondering if a script existed (or could be made) which lets us enter the filename (so we can save it somewhere) and which opens the file Info panel so we can enter the paper type (in the description area below the author Title) or just asks for the type of paper and puts the answer into the description area.
thanks -
May 20, 2015 at 8:26 am #75506Loic AigonMember
Hi,
This kind of script is definitively doable. We can imagine a simple UI that would let an user propose a list of paper types and given a valid selection would write the file metadata. On a personal note, I prefer writing custom metadata in n extra xmp node as the regular xmp fields should be reserved for what they have been intended to.
Loic
-
May 20, 2015 at 10:36 am #75513Theunis De JongMember
Loic, an advantage of using the standard Description field is that it will appear on the Document Info field when opening a PDF.
Gert, try this – untested but it ought to work:
paper = prompt ("Enter paper description", "Just pick anything"); if (paper) app.activeDocument.metadataPreferences.description = paper;
-
May 20, 2015 at 9:37 pm #75523Gert VerreptMember
@Jongware: thanks a lot works just fine and it’s all we need.
-
May 21, 2015 at 1:17 am #75527Loic AigonMember
@Jongware
“an advantage of using the standard Description field is that it will appear on the Document Info field when opening a PDF.”I agree. It’s a good argument indeed.
It was also possible to add your own xmp panel a while ago (not extensions, but some xml based panel) I don’t know if it’s still possible but for some custom workflow it could have make sense to have the whole package :)
-
-
AuthorPosts
- You must be logged in to reply to this topic.