How to script "Convert URLs to Hyperlink" in CS5

So InDesign CS5 offers a new feature to "Convert URLs to Hyperlink". Does anyone know how to invoke this feature via JS?

You can invoke the menu action. It is in fact a script, so it's a script menu action...
FWIW, the feature does not work 100% so be careful...
Harbs

Similar Messages

  • Convert URL to Hyperlinks in Indesign

    Hyperlinks in 2-3 lines are clickable when exported to PDF
    I have many URL in the PDF, but the problem is the URL's that are in 1 line are clickable.
    The URLs that runs to 2-3 lines are not clickable. One the 1st line of the same URL is clickable.
    For example:
    https://developer.atlassian.com/display/DOCS/Set+Up+the+Eclipse+IDE+for+Linux
    On the page layout the same URL comes in 2 lines. Only the URL till https://developer.atlassian.com/display/DOCS/Set+Up is clickable, but the following URL is not clicable in PDF.
    Please assist me with this.

    Thanks Ellis for the sugesstion but we have to convert all the Hyperlinks Manually and its taking lot of time.
    I have found a Script from http://kasyan.ho.com.ua/make_hyperlinks_from_urls.html.
    But there is a little problem.
    When I run this script its converting the URL to Hyperlink, but its changing the original URL text present in the Indesign file.
    Can this script search for a specific URL character style and convert it to Hyperlink by retaining the Original text in Indesign.
    For Example:
    The Original URL in Indesign file is this:
    https://confluence.atlassian.com/display/JIRA/Connecting+JIRA+to+a+Database
    When I run the script its changed to:
    confluence.atlassian.com
    Please help me.

  • Convert URL to hyperlink in BCM Chat

    Hi Experts,
    We have a requirement where if agent is sending any URL to the customer over the BCM chat it should get converted in to a hyperlink, Which is a regular functionality in any chat application but when we tested, BCM is not doing so. Could you please guide me how to achieve this?
    Thanks,
    Amit

    I would say this is certainly a bug -- InDesign should not produce an URL in a hyperlink destination. If it detects it as a destination, it should do whatever is necessary.
    Anyhow, this is easy enough to fix via a script (untested)t. Try this:
    var
        i,
        hls=app.activeDocument.hyperlinkURLDestinations;
    for (i=0; i<hls.length; i++) {
        if (!hls[i].match('://')) {
            hls[i] = 'http://' + hls[i];
    That is, loop over all the hyperlink destinations (hls) in the document, and check to see if each one does not contain ://. If so, prepend "http://" to it.
    Save the above as fixlinks.jsx and install per
    http://www.danrodney.com/scripts/directions-installingscripts.html.

  • How do I convert a Word hyperlink path to point to a converted PDF document?

    I have a folder with Word documents that I want to convert to PDF. Many of the Word documents have hyperlinks to bookmarks in other Word documents in the same folder. (I'm trying to convert all the Word documents in the folder to PDF.) After I convert all the folder documents to PDF and click on the hyperlinks, they take me to the old Word documents. Is there a way to convert the hyperlink paths to instead take me to the converted PDF document?

    The original Hyperlink path, established in the MS Word files has as the target file some *.doc file.
    Edit Hyperlinks, in MS Word, to change the target file(s) to the appropriate *.pdf file.
    As a guess, I'd say someone familiar with MS VB might be able to come of with something to do the change programmatically.
    An alternative could be a web search for a possible Acrobat JavaScript that might do the job to the PDF files.
    Failing that the job would be done manually to each Hyperlink in each MS Word file.
    As to MS Hyperlinks to MS "Bookmarks" in other files.
    The [ # ] character used as a parameter is not interpreted by Adobe Reader / Acrobat in the same manner as MS Office products.
    Consequently, in an output PDF, the link will only open the target file. Note that MS Bookmarks within a DOC file will function in the output PDF.
    For PDF Open Parameters see:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open _parameters_v9.pdf
    Be well...

  • Need Regular Expression to convert URL to Hyperlink

    I need Help Please..........
    I am fairly new to Java and really new to Reg Exp. I have a String that has normal text and may contain a URL. I would like to display the URL as A hyperlink using JSP.
    Can anyone help.

    This is actually not that hard, if you know where the text is located? Using the regex you can find the beginning and ending pattern of text that you are looking for. Then extract the data and put it into a variable. add stuff to it if you need by concatenating it like: "http://"+variable+".com" what every you need.
    something like this will help.
    String page = new String("");
              String inputLine;
              // This is sorta strange, but I use the concat to put the whole string on one line.
              // besides it is just for looking through. I use the trim() to get rid of whitespace.
              while ((inputLine = in.readLine()) != null)
                  page = page.concat(inputLine.trim());
             // The "URL:" is basically a pattern match to find in your text file.
             // and the font tags are where the data is to be extracted between, by using the split()
             //  I used this to extract data from Websites, but you can use it on text files, xml files, etc...
             // as long as you can pattern match.
              String urlString = (String)(page.split("\\<[Bb]\\>URL:\\</[Bb]\\>")[1].split( 
              "\\<font size=\"-1\"\\>")[1].split("\\</font>")[0].trim()); 

  • How do I convert a file into inx with cs5.5?

    Hello,
    How do I convert a file in indesign cs5.5 into the interchange format?
    Thanks for your answers

    A complete review can be found here, but basically, you can't. CS4 was the last version that was able to generate INX - the format was replaced with IDML. You must export IDML with CS5.5, open that IDML in CS4, then export INX from CS4.
    Why do you need INX? If it's for someone with CS3, then that person may not get a useable file, if any features introduced after CS3 were used in the CS5.5 document.

  • In Pages 5, Maverick, How do I stop automatic conversation of URLs to hyperlinks and seeing them underlined

    There used to be a preference setting in Pages.  Now it seems gone in Pages 5.   So how do I stop automatic conversation of URLs to hyperlinks and seeing them underlined in text.  Sometimes I want it, but not always.

    The preference setting to turn off links is gone. When you enter content that triggers link detection, a link character style gets applied. Right-click on the link, choose Edit Link from the menu, and then Remove.
    To prevent Pages from automatically detecting links, visit Edit > Substitutions > and deselect Smart Links.

  • How to stop delay when streaming data from a script as URL to an Applet?

    I have a strange problem and do not know what is causing it. Hope someone here with some experience can help.
    I have a Java Applet which makes a line graph of data. The data source is to be streaming, where the first chunk of data comes from what is already in a data file, and then new data is sent whenever it is ready. The problem in brief is that if I just collect and show the data from the data file and do not stream everything works fine. If I also have the streaming and wait for a long time, everything works fine, but when the applet is first loaded, the graph is not shown until after a long delay time.
    Here is a snippet of the applet code:
             String dataendpoint = "http://phpfunction.php";
             URL url = new URL(dataendpoint);
             InputStream is = url.openStream();
             String line;
             InputStreamReader isr = new InputStreamReader(is);
             BufferedReader br = new BufferedReader(isr);
             while ((line = br.readLine()) != null) {
                   // my code here to handle each line of data which prepares it for
                   // showing on a line graph.
             } In the above, I show the dataendpoint variable hardcoded, but in reality this comes as an Applet parameter. It is a URL of a php script which is on the same server as the applet's code and there are no access problems here.
    The PHP script does the following: It first opens a data file, parses it and prints it out to its standard output using echo or printf statements. The script then enters a loop where it periodically looks to see if new data has been made available. If so, that new data is also printed out to the standard output.
    The PHP script looks like this (in pseudo code):
       // open data files, read lines, and send to standard output using echo
       // flush buffers using ob_flush() and flush() calls
       while (1) {
          sleep(30);
          // get new data, if any, then send to standard output
          // flush buffers again
       Again my problem: If I have the PHP script exit before the while loop everything works fine, my applet makes the graph immediately.
    However, if I include the while loop, then initially the applet does not appear, not until some time afterwards, and then the applet works like it should, scrolling along every time new data arrives.
    I have done a Wireshark sniff and I can see that the initial data is being sent out the the browser and applet immediately. So I do not think it is a buffering problem on the PHP side.
    I have wrapped every Applet code line with debug print statements and from the Java console I see that the Java Applet is stopping at this line:
    InputStream is = url.openStream();
    Can someone explain what is happening here? Why the delay in returning from the openStream() function and how to avoid it?
    By the way, the server is Linux and the Applet is being run on Windows Vista, and I have tried both Internet Explorer and Firefox, both give the same behavior.
    Thanks in advance!
    Steve, Denmark

    I still cannot solve this problem, but I have some more observations:
    1) yes it is a JApplet, and yes, the data streaming is performed in a separate thread.
    2) Wireshark sniffing shows that data sent out by the PHP datasource on the server is sent immediately, and is not buffered (am using ob_start(), ob_flush() and flush() alls in the PHP script).
    3) On Windows Vista, using Internet Explorer or Firefox, there is a constant 30 second delay before the Applet returns from this line: InputStream is = url.openStream();
    4) After this 30 seconds, data appears in the Applet, but it can be seen also with java console debug prints that the data seems to be buffered. The newest data shown in the Applet is not the newest data sent to the client by the PHP datasource script.
    5) On a SUSE Linux client, the Applet works as it should, there is no delay time in showing the data.
    It appears as if there is on Windows a buffering of data which I do not wish to have and which does not occur on Linux. I need to find out how to get the URL openStream() call to return immediately allowing the initial data to be read and shown on the Applet. And I need to remove the buffering of data so that the data can be shown on the Applet when it arrives.
    Can anyone help? Why does this work on Linux but not on Windows, and what can I do, at best within the Java code, to get the Applet to work on Windows as it does on Linux?
    Thanks!
    Steve, Denmark

  • How to get Dynamic Converter URL

    Hi all
    I need to get dynamic converter url of document like http://<localhost>:<port>/cs/idcplg?IdcService=GET_DYNAMIC_CONVERSION&dID=7411.
    I use DOC_INFO_BY_NAME and i can find document url using 'DocUrl'. But i cannot find anything about dynamic converter.
    How can i get the url just using RIDC?
    Best Regards
    Qian

    Hi ,
    Whether i can get which format will be converted(convert format in Dynamic Converter Admin Configuration Setting) ?
    This is applicable for the UI alone where in all the formats that you want to have "HTML" option shown will be added from the above option .
    As for getting Dynamic Conversion using the IdcService , all of the contents can be used irrespective of whether they are added in the DC Admin section or not . So if you want to show the HTML format then all you need to do is to call the GET_DYNAMIC_CONVERSION service and pass the dID of the respective contents .
    Thanks,
    Srinath

  • How could I convert pdf file to real url?

    How could I convert pdf file to real url?

    Many thanks Gilad
    But the link of Acrobat is not working in facebook, that is Why I mentioned a real URL " Web-page

  • How to make a url hyperlink in interaction center alert

    Hello,
    We would like to have a hyperlink to a url in the alert in the interaction center of CRM 7.0.
    We have tried to make the hyperlink in the alert text, by writing this html code <a href="http://www.google.com">GLOOGLE</a>
    but we think the alert editor does not accept that code.
    Does anyone know how to insert a url hyperlink in an alert ??
    Thank you very much in advance.
    Luis Angel Fiel

    Hello Luis,
    In order to insert a hyperlink into an alert, you actually need to use the Navigation Object Type/Action field and choose an existing navigation object type/action (launch transaction) that has been mapped to your desired URL. This is the same technique that you would use if you want to call the URL from anywhere else, like the NavBar. You can't simply add a URL directly to the alert.
    Best regards,
    John

  • How do I convert PDF/JPEG file in "Brush Script MT" font to Word Document

    How do I convert PDF/JPEG file in "Brush Script MT" font to Word Document? (I checked with Acrobat XI pro but no use

    You cannot in Adobe Reader. You can try in Acrobat, but first you must try to run OCR (Text Recognition). I have never tried OCR on a script font.

  • How can I convert MS Word to PDF (w/ hyperlinks and bookmarks)?

    Hello,
    I have a 1000+ page MS Word document that I'm trying to convert to PDF.
    If in MS Word I select Adobe PDF > Convert to Adobe PDF my system hangs. (I've let it sit for over 2.5 hours with no progress.)
    I can easily print to a .prn file and then distill the file to create a PDF. However, when I do this method, the PDF comes through with no hyperlinks and no bookmarks. Are there any conversation settings so that this method will create the hyperlinks/bookmarks?
    Given the size of the PDF, hyperlinks/bookmarks are extremely important. Any other ideas/tips would be appreciated.
    thanks,
    Kara

    Please itemize how I can convert a MS Word document into a PDF document.

  • How to convert URL to its domain name

    Hi,
    I need to get the client machine name to track who had logged on to the website. I know how to get the url using the request as : request.getRequestUrl(), but is there a way i use this information to get the domain name for the url?
    Thanks a lot.
    cc

    Well if you have the actual URL, then can't you just parse the string, extracting the portion after the last dot for example?
    Also, you may want to take a look at the java.net.InetAddress class --it has static methods for returning both the IP and the name of a computer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I convert a pdf or .doc into a url

    I want to link a pdf file to a word on a website. I think the easiest way would be to link a url address but I do not know how to get a url address from a pdf or I do not know where the url address can be found. Can anyone help me with this?

    Hi, Chartla2012.
    I would suggest you speak to the IT department or service which is hosting your website. Your question is not exactly related to our CreatePDF service.
    You can include links in PDF files. Those links can go to any Internet-hosted content, including Word files. In this way, you could have a user open a PDF file in his browser and click on a link in the PDF which will in turn open a Word file.
    Dave

Maybe you are looking for

  • How do I change InDesign CC's desktop back to white?

    I'm finding it hard to read the menu bar and what info I have on the desktop. How do I return it to white?

  • Bex Analyzer error -2147417848

    Hi , I am getting following error  Run-time error '-2147417848 (80010108)': Automation error The object invoked has disconnected from its clients.. Value help window crashes with error -2147417848 (80010108) . This happens, when selecting a value by

  • Filters in IDOC ?

    what is a filter ? why are u using this filters in IDOC's ?plzzzzzzzzz explain me with one exmple ?

  • A href in JSP

    I understand this is incorrect syntax but I am retrieving a path from my database and I want to be able to download from this. I'm new enough to JSP so I am not 100% sure how to go about this. <a href ="<%= request.getParameter( "path") %> ">Path</a>

  • Related to Hierarchy level

    Hi BI Gurus, From the SDN, i understood that hierarchy cannot be transported directly. i am creating hierarchy in Quality as it is in Development. I have a doubt here. Now in my development system, i have 4 Hierarchy levels. But i am not able to crea