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

the Number of hyperlinks

Participant ,
May 09, 2024 May 09, 2024

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

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

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

Can you show your script?

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

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?

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

what can I do to get the number exactly ?

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

 

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

For a project

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

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? 

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

For a project


By @aghanjar16430960

 

Can you be more precise?

 

So you can charge someone referral fee or what?

 

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