Skip to main content
July 4, 2013
Question

Indesign cs4 update error

  • July 4, 2013
  • 0 replies
  • 266 views

Hi,

We are working in Indesign cs4..i am getting error while updating the xml in Indesign cs4.but it is working fine in Indesign cs5.5 and cs6...i have added my script below,

function ReLink()

{

myDoc = app.activeDocument;

myLinks = myDoc.links;

for (j = myLinks.length - 1; j >= 0; j--)

{

                    myName = myLinks.filePath;

             var ext =  myName.substring(myName.length-3,myName.length) ;

           if (ext=="xml")

          {

      var reLinkXMLFile = app.scriptArgs.get("reLinkXMLFile");

              var myXMLFile = File(reLinkXMLFile);

     myLinks.relink(myXMLFile);

     myLinks.update();

                    }

}

}

please someone help us to solve this problem.thanks in advance.

This topic has been closed for replies.