title: inDesign CC: Adding pages with master spread to document using script
body: <p>I'm new to coding with inDesign and am at a loss for how to achieve this...
  Basically I need to generate 50+ brochure range sheets. It's a document that catalogues products using data merging from a .csv file. </p>
  
  <p>What I need to save me time is a script that then inserts enough pages (round up to the nearest 4) and assigns Master-A and Master-B spreads to the covers and penultimate pages. </p>
  
  <p>Can somebody please point me in the right direction? </p>