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

Hyperlink groups

Engaged ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

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

Views

251

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

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

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