0 Replies Latest reply on May 27, 2013 10:41 PM by BEGINNER_X

    Add text sources

    BEGINNER_X Level 3

      Hi All,


      Kind request: Entirely new for hyperlink concept




      I want to  create text anchor in each page and for every textframe[0] contents.


      Using forum I modify the script (Running sucessfully):


      var myDoc = app.activeDocument

      var myHyperlink = myDoc.hyperlinks.everyItem().getElements()

      var myPageDestination = myDoc.hyperlinkPageDestinations.everyItem().getElements()



      for(j=0; j<myPageDestination.length; j++)


          var myFound = myPageDestination[j].destinationPage.textFrames[0].lines[0]



              var myTemp = myDoc.hyperlinkTextDestinations.add(myFound, {name: myFound.contents})




      But Pending Requirement:


      I want to add text sources for the created text anchor.


      Trying code:


      myHyperlinkSource = myDocument.hyperlinkTextSources.add(myFound, {name:myTemp});         //Error Plz help


      Could anyone help or rewrite my error coding.