Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Best way to add additional information to a pageItem ?

New Here ,
Jun 14, 2010 Jun 14, 2010

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.

TOPICS
Scripting
436
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2010 Jun 14, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2010 Jun 14, 2010

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 14, 2010 Jun 14, 2010
LATEST

label = myPageItem.extractLabel(key);

Harbs

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines