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

Hyperlink groups

Engaged ,
Jun 09, 2017 Jun 09, 2017

Hello,

Does anyone know how to access and change the name of a hyperlink group?

By a hyperlink group, I mean the group that hyperlinks are put into when they have the same destination.

I tried hyperlink.parent but this always returns [object Document].

Thanks,

Jake

TOPICS
Scripting
384
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
Engaged ,
Jun 09, 2017 Jun 09, 2017

If anyone's interested, I just found out that this is the hyperlink destination name property.

So I did this:

hlSource = doc.

paragraphDestinations.add ( destination );

hlSource.name = name

;

You should check that the destination is duplicated before doing this though

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 09, 2017 Jun 09, 2017
LATEST

Hyperlinks don't have groups. What looks like a group is simply two or more text sources pointing to the same destination. It's vaguely comparable with what you see in the Links panel when you place two or more pages from the same PDF.

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