6 Replies Latest reply on Dec 16, 2010 7:02 AM by Anil Yadav

    [js][cs3]Lock XMLStory

    senthilv_indesign

      Hi

       

         Is it possible to lock XML Story? I tried the following code,it throws error "lock state is read only property".

       

      var myDoc=app.documents[0];
      myDoc.importXML(File("C:/upper.xml"));
      var myStory=myDoc.xmlStories;
      myStory[0].lockState=LockStateValues.LOCKED_STORY;

       

       

      I need to lock XML tree structure. i.e It shouldn't allow to delete the XML tags/elements in XML tree structure view.

      Please suggest me if any option to achieve this.

       

       

      Regards

      Senthil Kumar V