6 Replies Latest reply on Nov 11, 2014 8:52 PM by Murali_Vetha

    Short cut coding

    Murali_Vetha Level 1

      Hi All,

       

      The below coding is to create margins for master spreads. If any shortcut coding for this.

       

      See my coding below

       

      var mydoc = app.activeDocument;

       

      mydoc.masterSpreads.item(0).

      pages.item(0).marginPreferences.top = "6p";
      mydoc.masterSpreads.item(0).pages.item(0).marginPreferences.left = "3p";
      mydoc.masterSpreads.item(0).pages.item(0).marginPreferences.bottom = "6p";
      mydoc.masterSpreads.item(0).pages.item(0).marginPreferences.right = "3p";
      mydoc.masterSpreads.item(0).pages.item(1).marginPreferences.top = "6p";
      mydoc.masterSpreads.item(0).pages.item(1).marginPreferences.left = "3p";
      mydoc.masterSpreads.item(0).pages.item(1).marginPreferences.bottom = "6p";
      mydoc.masterSpreads.item(0).pages.item(1).marginPreferences.right = "3p";

       

      alert("Done")

       

      Regards,

      Vetha