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

How can get Page No display by Crossreference?

Enthusiast ,
Mar 01, 2017 Mar 01, 2017

Copy link to clipboard

Copied

I have a Crossreference link to TextAnchor:

Ex: Display on Indesign: P15

If I get contents of TextFrame, it only is a special character.

if i get contents of character, it is a interger value: 1397781622

How can get value "P15"?

TOPICS
Scripting

Views

197

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Mar 03, 2017 Mar 03, 2017

Hi,

what is returned with that value is an enumeration for a special character.

In this case it is: SpecialCharacters.TEXT_VARIABLE

You could use the TextVariableInstance class and its property resultText to get what it is showing.

If the first TextVariableInstance is the one you like to address—there could be more—try the following:

var contentsOfSpecialCharacter = myTextFrame.textVariableInstances[0].resultText;

Regards,
Uwe

Votes

Translate

Translate
Community Expert ,
Mar 03, 2017 Mar 03, 2017

Copy link to clipboard

Copied

LATEST

Hi,

what is returned with that value is an enumeration for a special character.

In this case it is: SpecialCharacters.TEXT_VARIABLE

You could use the TextVariableInstance class and its property resultText to get what it is showing.

If the first TextVariableInstance is the one you like to address—there could be more—try the following:

var contentsOfSpecialCharacter = myTextFrame.textVariableInstances[0].resultText;

Regards,
Uwe

Votes

Translate

Translate

Report

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