7 Replies Latest reply on Jul 30, 2014 1:35 PM by Team Steam

    [js, id5] clearOverrides cells

    stoereee Level 1

      Hello,

       

      I want to clear all overrides including text within tables. I thought I had the right script:

       

       

      var myDoc = app.activeDocument;
      myDoc.stories.everyItem().tables.everyItem().cells.everyItem().clearOverrides();
      

       

      But this gives me the following error:

       

      Error 24:

      Error string: myDoc.stories.everyItem().tables.everyItem().cells.everyItem().clearOverrides()

      is not a function

       

      What is wrong with the script?

       

      Regards, Sjoerd