Copy link to clipboard
Copied
Hello all,
Please help to add 'script label' active text box in a complete indesign document..
Thanks,
Anil
1 Correct answer
Copy link to clipboard
Copied
Copy link to clipboard
Copied
hey Anil,
If you want to give it through script, you can try this......
activeTextBox.label = "myLabel";
Copy link to clipboard
Copied
Thanks for help. Does this work in complete indesign document?
Copy link to clipboard
Copied
Be clear If you are asking for code or screenshot?
Copy link to clipboard
Copied
Sorry for confusion..I'm asking for code...
Thanks,
Anil
Copy link to clipboard
Copied
try this..
var myDoc = app.documents[0];
var page = myDoc.pages;
for(var i = 0; i < page.length; i++){
page.textFrames[0].label = "myLable" + i;
}
Copy link to clipboard
Copied
thanks a ton...it works fine....
Copy link to clipboard
Copied
What do you mean by complete document?
Look into DOM documentation for property label or methods insertLabel() and extractLabel().
You'll find, that label is a property of a lot of objects.
Even available for a Document object or the app itself.
Be aware that the user interface cannot reveal all your label entries you can do by scripting.
DOM documentation compiled by Gregor Fellenz:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#about.html
DOM documentation compiled by Jongware:
Adobe InDesign CS6 (8.0) Object Model JS: TextFrame
More of this:
Regards,
Uwe
Copy link to clipboard
Copied
thanks all for help....

