Hyperlink to button CS6

Hello is use this script in Indesign CS5 and it works. Now i have CS6 and it's not working anymore.
It makes the yellow bar but the hyperlink is empty.
Does somebody know to fix this?
Kind regards,
Patrick
/* Copyright 2014, Kasyan Servetsky
February 3, 2014
Written by Kasyan Servetsky
http://www.kasyan.ho.com.ua
e-mail: [email protected] */ 
//====================================================================================== 
var scriptName = "Convert hyperlinks to buttons - 2.0", 
doc; 
Main(); 
//===================================== FUNCTIONS  ====================================== 
function Main() { 
    var hyperlink, source, sourceText, destination, page, arr, outlinedText, gb, button, behavior, sourcePageItem, 
    barodeCount = 0, 
    hypCount = 0; 
    if (app.documents.length == 0) ErrorExit("Please open a document and try again.", true); 
    var startTime = new Date(); 
    doc = app.activeDocument; 
    var layer = MakeLayer("Buttons"); 
    var swatch = MakeColor("RGB Yellow", ColorSpace.RGB, ColorModel.process, [255, 255, 0]); 
    var hyperlinks = doc.hyperlinks; 
    var progressWin = new Window ("window", scriptName); 
    progressBar = progressWin.add ("progressbar", undefined, 0, undefined); 
    progressBar.preferredSize.width = 450; 
    progressTxt = progressWin.add("statictext", undefined,  "Starting processing hyperlinks"); 
    progressTxt.preferredSize.width = 400; 
    progressTxt.preferredSize.height = 30; 
    progressTxt.alignment = "left"; 
    progressBar.maxvalue = hyperlinks.length; 
    progressWin.show(); 
    for (var i = hyperlinks.length-1; i >= 0; i--) { 
        hyperlink = hyperlinks[i]; 
        source = hyperlink.source; 
        destination = hyperlink.destination; 
        if (source.constructor.name == "HyperlinkTextSource") { 
            sourceText = source.sourceText; 
            page = sourceText.parentTextFrames[0].parentPage; 
            arr = sourceText.createOutlines(false); 
            outlinedText = arr[0]; 
            gb = outlinedText.geometricBounds; 
            outlinedText.remove();             
        else if (source.constructor.name == "HyperlinkPageItemSource") { 
            sourcePageItem = source.sourcePageItem; 
            gb = sourcePageItem.geometricBounds; 
            page = sourcePageItem.parentPage; 
        barodeCount++; 
        progressBar.value = barodeCount; 
        progressTxt.text = "Processing hyperlink " + hyperlink.name + " (Page - " + page.name + ")"; 
        if (source.constructor.name == "HyperlinkTextSource" || source.constructor.name == "HyperlinkPageItemSource") { 
            button = page.buttons.add(layer, {geometricBounds: gb, name: hyperlink.name}); 
            button.fillColor = swatch; 
            button.fillTint = 50; 
            button.groups[0].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;     
            behavior = button.gotoURLBehaviors.add(); 
            behavior.url = destination.destinationURL; 
            hyperlink.remove(); 
            source.remove(); 
            hypCount++; 
    var endTime = new Date(); 
    var duration = GetDuration(startTime, endTime); 
    progressWin.close(); 
    alert("Finished. " + hypCount + " hyperlinks were convertted to buttons.\n(time elapsed: " + duration + ")", scriptName); 
function GetDuration(startTime, endTime) { 
    var str; 
    var duration = (endTime - startTime)/1000; 
    duration = Math.round(duration); 
    if (duration >= 60) { 
        var minutes = Math.floor(duration/60); 
        var seconds = duration - (minutes * 60); 
        str = minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second"); 
        if (minutes >= 60) { 
            var hours = Math.floor(minutes/60); 
            minutes = minutes - (hours * 60); 
            str = hours + ((hours != 1) ? " hours, " : " hour, ") + minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second"); 
    else { 
        str = duration + ((duration != 1) ? " seconds" : " second"); 
    return str; 
function MakeLayer(name, layerColor) { 
    var layer = doc.layers.item(name); 
    if (!layer.isValid) { 
        layer = doc.layers.add({name: name}); 
        if (layerColor != undefined) layer.layerColor = layerColor; 
    return layer; 
function MakeColor(colorName, colorSpace, colorModel, colorValue) { 
    var doc = app.activeDocument; 
    var color = doc.colors.item(colorName); 
    if (!color.isValid) { 
        color = doc.colors.add({name: colorName, space: colorSpace, model: colorModel, colorValue: colorValue}); 
    return color; 
function ErrorExit(error, icon) { 
    alert(error, scriptName, icon); 
    exit(); 

Hi Patric,
Actually it was written in CS6. I just retested it in CC 2014 and it works for me (see the screenshots).
Before
After
Regards,
Kasyan

Similar Messages

  • Hyperlink (or Button) in Page Footer on Page 0

    (This message was inadvertantly posted twice. Please disregard this instance)
    I have created an application in HTML DB 2.0 with a Page 0 for my Page Headers & Footers. I am attempting to add either a hyperlink or button to my Page Footer on Page 0 so that the button, or hyperlink, appears on each page. This functionality is essentially a site disclaimer which I want accessible from every page in an inconspicuous fashion. I have not been able to find a straight-forward example or solution. Thanks.
    Message was edited by: MovingTarget
    MovingTarget

    Hi Rob,
    see "Understanding the URL syntax" at http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/concept.htm#BEIFCDGF
    That should give you the necessary info you need.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Add hyperlink or button to open document in client application

    Good day.
    I have SharePoint 2013 and Office Web Apps 2013 integrated with it.
    I configured the default behavior when clicking on a document in a document library to open it in web app. 
    And I want additionally to have column in this library with hyperlink or button to open document in client application.
    I can click on menu near document name with WAC preview and then click "change" button. But in this case I make 2 clicks. So I want to have this  "change" button as a column in the list of document library.
    How can I do it?

    Hi, Daniel.
    I successfully created rich
    text type column - richtextcolumn.
    Then I created workflow associated with documents library and added action to set field in current element
    - it sets richtextcolumn with value you wrote - "<a class="ms-listlink ms-draggable"
    onclick="return DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','1','SharePoint.OpenDocuments','','','','1','0','0','0x7fffffffffffffff')" href="[%Current
    Item: Server Relative URL%]" DragId="7">test</a> .".
    I configured this workflow to run on element creating and editing.
    Then I upload a document and see link to this document appearing in richtextcolumn.
    But when I click this link it just download document and then open it in client application. So if I change something in this document and try to save it, it will be saved in my local download folder and not sharepoint.

  • Hyperlink vs Button in an InDesign Interactive Folio?

    Hi! I am trying to create an interactive document in InDesign via the Folio Builder that can be used on an iPad or Android tablet. I am trying to put in navigation so that you can hop around within the document. I did this via a master page (is this an issue?). But it appears that I can do this using either hyperlinks OR buttons, they seem very similar to me. Why would you use one versus the other? Either way, I can't seem to get them to work when I port to the iPad. Any thoughts?
    Thanks!!
    -M

    That won't work.
    Navigation through the folio must be done using the navto:// command.
    This has been discussed in the DPS forum. Please post followups there.
    http://forums.adobe.com/community/dps
    Bob

  • Hyperlinks created in CS6 introduce extra characters

    I've noticed that when I create hyperlinks in InDesign CS6 (v 8.0.1) it adds extra characters in the URL, thus breaking the link. For example [red highlights problem areas]...
    Correct hyperlink typed into InDesign:
    http://portfolio.epri.com/ProgramTab.aspx?sId=ENV&rId=220&pId=6931
    InDesign renders the URL this way:
    http://portfolio.epri.com/ProgramTab.aspx%3FsId%3DENV%26rId%3D220%26pId%3D6931
    This happens on both a Mac and a pc. I never experienced this problem in earlier versions of InDesign.
    I found an earlier discussion about this problem but it doesn't appear that Adobe has fixed it. A corrective script was offered by Laubender in that discussion. However, I create a lot of docs with a lot of links and would rather avoid that type of solution.
    Any suggestions would be much appreciated.

    Use laubender's script solution. It is the most straightforward fix.
    http://forums.adobe.com/message/4463255#4463255

  • Download button CS6

    I trie to add encore to my CC.
    only the button - bleu, right hand top corner_ on the download page does not work?
    Who know a solution?
    https://creative.adobe.com/products/premiere

    Thanks… after IE and Chrome … firefox was succesfull
    Van: Romsinha [email protected]
    Verzonden: 4 oktober 2013 11:13
    Aan: Toon&Beeld
    Onderwerp: download button CS6
    Re: download button CS6
    created by Romsinha <http://forums.adobe.com/people/Romsinha>  in Adobe Creative Cloud - View the full discussion <http://forums.adobe.com/message/5735629#5735629

  • I cant get hyperlinks and buttons to work...

    I am creating basic Folio's but I cant get none of my Hyperlinks or buttons to work... Am I doing something wrong?

    Hi,
    Make object for button, select it and press "convert to button" (Buttons and Forms tab). Choose "go to url" action (it is located under tiny plus button) and paste or type in full url with http://  in "URL" field.
    Likewise for hyperlinks select text and press "Create new hyperlink" on Hyperlinks panel then paste full url (uncheck "Shared Hyperlink Destination") and press OK.
    It should work. Of course if you have Internet connection.
    If your links point to pages or articles inside the folio use navto:// instead of http://
    More info:
    Digital Publishing Suite Help | Hyperlink and button overlays

  • Different behavior: Hyperlink vs Button, please advice

    I have a "Customers" page, that lists all customers using Data Table bound to a customerDataProvider. User can click on the first column to go to "Customer Detail" page, which has its own data Provider and provides more details about the specific customer. So far so good.
    In the "Customer Detail" page, I added a "Close" button and a "Close" hyperlink (to test). The purpose of these is to close the detail page and to go back to "Customers" page. Simple, right.
    This is what I found:
    When you click on the close hyperlink in the detail page, it goes back to the master page (Customer page), and the master page remembers its state (page number, sorting, etc.)
    When you click on the button (I tried both ui:button and h:commandButton), the master page goes back to its default state and it does not remember its state.
    I would like to use the button and have the page remember its state. Why are they behaving different? Any insights?

    So, I have two choices:
    1. Disable "Submit" on the "Close" button - since its just a link and it doesn't need to submit. But I can't figure out how to disable submit and make the button act like a hyperlink.
    2. Use session bean to store the table state. I just tried this one to save sorting and it worked, but I need to save all other parameters of table state, like page number, records per page, filtering, etc. Is there just one function that I can call to store all these, or do I need to save each one seperately?
    In session bean:
    // Save the sort critera of a data table - MS
        private TableDataSorter tableDataSorter;
        public void setTableDataSorter(TableDataSorter tableDataSorter){
            this.tableDataSorter=tableDataSorter;
        public TableDataSorter getTableDataSorter(){
            return this.tableDataSorter;
        }In preRender of master page:
    public void prerender() {
            info("Page="+this.getTableRowGroup1().getPage());
            if (getSessionBean1().getTableDataSorter()!=null){
                this.getTableRowGroup1().setTableDataSorter(getSessionBean1().getTableDataSorter());
            //web_userDataProvider.refresh();
        }Is there a better way to do this or this is the best we can do?

  • Hyperlink Activation Button not working any more in CMS Toolbar.

    I'm a long term FF user. I'm using 9.0.1 on a Mac.
    Just recently though, I can no longer use a LINK BUILDER button in some of our clients' Content Management Systems.
    When I click on the LINK ICON in a text box formatting toolbar - nothing happens - previously a pop-up window would appear to enable me to activate the text as a hyperlink.
    Nothing has been updated on the website itself to create this problem.
    I've checked my POP-UP BLOCKER in my FF Preferences and find it is NOT ticked as yes. The website CMS I'm using is ASP programming.
    I can be contacted at [email protected] if you have suggestions or questions.

    @ cor-el : Faster then I thought,and in safe-mode,the Panorama-button is
    working again!
    Deleted some tab-related addons some time ago,because they seemed not to
    work properly with Panorama.And as a replacement for the TabGroupsMenu,I
    installed EnhancedMiddleClick.
    My idea was,that it is more a menu-thing,didn't thought,it could be the
    reason for the problem.
    Now I deactivated it after the safemode/restart,and it was the culprit!
    Thanks for initiating me to try the safe-mode!
    But why these addon(EnhancedMiddleClick v0.3.1) is not greyed-out on
    your addon-page,like other ones?
    Maybe,you can recommend an addon which is able to work with tabgrouping
    correctly on IW 11.0 (backported for Debian-Squeeze)?
    @ cor-el2 : I tried it that way,but when I restart,the new first window
    shows the same behaviour.
    Thanks up to here,
    cb-bob

  • Missing Camera Raw Preview Button CS6

    Something I use on a regular basis in Camera Raw CS5 is the Preview button to get a visual sense of adjustments I make in RAW before going into photoshop. I was recently upgraded to CS6 at work and in RAW the Preview button is missing. Does anyone have any knowledge of what's going on? Is this one of the number of changes made from CS5 to CS6?
    The first image shows what my current CS6 RAW page looks like, missing the preview button.
    The second image shows the preview button on CS5, which I would sure like to have on CS6 RAW.
    I'm enclosing two images? the first

    Read this thread on the ACR forum. Preview Button

  • Unable to insert hyperlinks after reinstalling CS6

    Hi, I recently got a new computer and just reinstalled CS6. Since the installation, I've been having trouble with the link panel. Now when I open it, there is no space to enter a URL. I've attached a screenshot (the links you see were already saved in the file before the re-installation). I can still use the function that converts all URLs in the file to hyperlinks, but as I want to link individual words without showing the URL, this isn't sufficient. I've also already tried deleting my InDesign preferences file when starting up, and that hasn't changed anything. Any tips would be appreciated!

    Try the Hyperlinks panel.  (Window > Interactive > Hyperlinks)
    The Links panel is for objects only that are linked, not embedded.
    us-hh

  • Digital Publishing Suite Help | Hyperlink and button overlays

    This question was posted in response to the following article: http://helpx.adobe.com/digital-publishing-suite/help/hyperlink-overlays.html

    @Fabian – just for the records: there is a way.
    But it's quite a hack!
    You cannot rely on it for future versions of DPS or InDesign…
    1. You start with two buttons and a single MSO on the same page.
    Button 1 says: Go to State 1 of MSO
    Button 2 says: Go to State 2 of MSO
    NOW the hack:
    2. DUPLICATE (do not copy/paste) the two buttons by [alt] + drag with the mouse to page 2.
    You'll see, that the duplicates still control the MSO on page 1.
    The following screen shots will illustrate this:
    Here the state control of the green button on page 1:
    Here the state control of the green button on page 2:
    (Note the difference!)
    To make it clear again. I would not recommend to do it.
    But you could test it. Come back and report if that is working for you with the most recent versions of InDesign and ADPS…
    (I accomplished this with InDesign CS5.5 v7.5.3)
    Uwe

  • Creating Hyperlink using InDesign CS6 Server

    Hello,
    Could anyone help me to automate hyperlink generation for the web related contents, I can acheive this using desktop, but not in InDesign CS6 server, since 'selection' property is not supporting by the server version.
    Thanks,
    Praveen

    As i understand, if your panels at the same height you can create a new document with 6 page with the  size scaled to 25%, then on page panel: unckeck AllowDocumet Pages to Shuffle. Drag the pages to be side to side, and that make the total width of you mural
    When you export to pdf, on general tab check on all pages & spreads

  • Hyperlinks on buttons

    Ok. Hello all..
    I made a simple site on Flash Catalyst and I have 5 buttons where I want to put a hyperlink on each button and open the link on mouse-click. I have searched a lot and still couldn't find how to do this.. What am I missing here? Any directions?
    Jimmy

    Hi Jimmy,
    Check this out: http://forums.adobe.com/message/2056018#2056018
    Short answer: not yet, but soon.
    -Adam

  • How to Create Hyperlink in Button?

    I created a button. In the Up-Over-Down-Hit area, I created 2
    more layers with a keyframe in Over so the button changes color and
    makes a sound upon mouseover. Now I want it to go to another
    webpage when clicked. I'm using Actionscript 3 and I can't seem to
    figure out this simple task.

    Just use action script 2 and place code on the button:
    on(press) {
    getURL("
    http://www.adobe.com", "_blank");
    or frame action
    btnInstanceName.onPress=function() {
    getURL("
    http://www.adobe.com", "_blank");
    }

Maybe you are looking for

  • Printable PDF and few other issues

    Hello, I am using BIEE 11g and experiencing few issues and looking for advices for issues below : 1. Printable PDF format - When i download dashboard and answer to printable PDF, the PDF's format doesnt seem following the format of dashboard. It main

  • Rs.updateBoolean SQLException: ORA-12899: value too large for column

    Complete error is SQLException: ORA-12899: value too large for column "SMSUSER"."PRUEBA"."VLOGIC" (actual: 4, maximum: 1) Let's see the code: PreparedStatement ps=null; ResultSet rs=null; try ps=conn.prepareStatement("create table prueba(name varchar

  • Mdm with solution manager

    Dear Friends i want to link mdm with solman for customizing distribution. Can anyone guide me or write step by step procedure for the same. Will reward points for sure.

  • Tunning required

    Hi I have created more than 15 packages for a single application i have used many procedures functions on no:of tables. after running the project they have taking long longtime. what is best way to tune the plsql query's and please explain how to tun

  • Avoid concurrence when text_io.fopen

    Hi, i open a file      in_file := Text_IO.Fopen(filename, 'r'); only to read the data and do some inserts. But I need to know nobody is opening the file, and show a message if it's happening. How? If i do after the open:      if Text_IO.is_open(in_fi