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

the Number of hyperlinks

Participant ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

I entered a script on Adobe InDesign to know the number of hyperlinks in my file. It gave me an inaccurate number knowing that the file contains 748 pages, and each page contains hyperlinks defined by a Master page

TOPICS
Scripting

Views

256

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 ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

It's not easy to see how a script could get it wrong:

alert (app.documents[0].hyperlinks.length);

Can you show your script?

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
Participant ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

Presumably this is because a hyperlink on a master page, even though it is visible on a "live" page of a document, is only counted once until and unless the text frame that contains it is overridden?

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
Participant ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

what can I do to get the number exactly ?

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 ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

quote

what can I do to get the number exactly ?


By @aghanjar16430960

 

Maybe export to PDF and check number of hyperlinks there?

 

But why do you need exact number of Hyperlinks?

 

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
Participant ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

For a project

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 ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

Hard to tell with out seeing the pages, but if you have 748 pages and there is one hyperlink on the master page, then wouldn't you have 748 hyperlinks? Unless there are other hyperlinks in the doc and/or the master is only applied to certain pages. Then you could use Peter's script + the number of pages? 

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 ,
May 09, 2024 May 09, 2024

Copy link to clipboard

Copied

LATEST
quote

For a project


By @aghanjar16430960

 

Can you be more precise?

 

So you can charge someone referral fee or what?

 

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