4 Replies Latest reply on Jun 12, 2013 12:53 AM by Bill joy

    How apply Master page using Keep current page size ?

    Bill joy Level 1

      Hi Experts

       

      I want to apply Master page using Keep Current Page Size using script.

       

      #target indesign

      var myDocument =app.activeDocument;

      var page=myDocument.spreads.item(0).pages.item(0);

      page.appliedMaster=app.activeDocument.masterSpreads.itemByName("A-Master");

      // with()

      // {

      // KeepCurrentPageSize;

      // }

       

      When i do it manually it prompt a message box

      Master Page Size conflict

      1) Use Master Page Size

      2) keep Current page Size

      3) Cancel

      I choose Keep Current page Size

       

      I want to do it using Script .

      what property apply with() ?