Missing http after convert URLS into hyperlink in CS5.5

I add hyperlinks to a long document using "Convert URLS into hyperlinks" of InDesign CS5.5

This works pretty well, but I'm having a problem with URLS that do not begin with http or www as part of the text (IE with example.com not www.example.com). Product from those hyperlinks don't get not one http:// inserted. So when you produce an interactive PDF, these links act as links and are preceded by the path of the file to the PDF file

Example:

In the text is a website example.com/details. When you run "Convert of URL in hyperlink", this becomes a hyperlink created with a URL to example.com/details. I then export to interactive PDF file on my drive jobs/project123/PDF. When you click on this link in Acrobat, it tries to open

file:///volumes/jobs/project123/PDFs/example.com/details

Instead of

http://example.com/details

Is there a way to make InDesign automatically inserts the necessary http:// in the destination of the hyperlink to this absolute link, or I have to edit each destination by hand?

Oops!

Some sort of error to copy - paste internal brain here, I think. I tested more of it than this, but I made a mistake in keeping it writing.

The problem is that, as imagine you, a hyperLinkURLDestination is not a string. The string inside what matters is the property of destinationURL , then use it, as well in the test and change:

    if (!hls[i].destinationURL.match('://')) {
        hls[i].destinationURL = 'http://' + hls[i].destinationURL;

The IDML of edition is not a script, but it is also a great way to go! Just what works best for you. I suspect that the script is much easier if it works for you...

Let me know if the above works, or works not (of course he needs to be wrapped up in the lines surrounding my first post).

Tags: InDesign

Similar Questions

Maybe you are looking for