Best way to add additional information to a pageItem ?
Copy link to clipboard
Copied
What is the best way to add additional information to a pageItem?
Do i have to use the assiciatedXMLElement or is there any "more nice" way where I can assign real, not XML based objects (parameter) to a pageItem?
(Mainly for InDesign)
Many thanks,
Daniel.
Copy link to clipboard
Copied
What do you mean by "additional information"? You can add a label, either by setting the standard script label:
myPageItem.label = "Some info";
which is quick and handy but inflexible, or you could use insertLabel(), which allows you to set any number of labels:
myPageItem.insertLabel ("shape", "circle");
myPageItem.insertLabel ("purpose", "globe");
Is that what you're after?
Peter
Copy link to clipboard
Copied
Hi Peter,
thanx for your answer.
This already looks good. But under which attribute of the pageItem can I later read the set labels? The label itself is only a string...
Copy link to clipboard
Copied
label = myPageItem.extractLabel(key);
Harbs

