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
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?
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?
Copy link to clipboard
Copied
what can I do to get the number exactly ?
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
For a project
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?
Copy link to clipboard
Copied
For a project
By @aghanjar16430960
Can you be more precise?
So you can charge someone referral fee or what?