Apply Master page based on page number

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Apply Master page based on page number

Tagged: 

Viewing 6 reply threads
  • Author
    Posts
    • #99130

      Hello folks,

      I am having 300+ indesign files, in that I need apply “A-Master” to 1st page of every indesign.

      Do you have any idea to make this work simple.

      Thanks,
      Murali S

    • #99148

      Hi,

      You need a script … and, personally, not for free!

      (^/)

    • #99150

      i don’t want any script in free.

      Just want to know how to make this work as simple.

      If the only script is ideal one, then guide me how to create it.

    • #99151
      Peter Kahrel
      Participant

      The script to do this on a single document is this simple one-liner:

      app.documents[0].pages[0].appliedMaster = app.documents[0].masterSpreads.item ('A-Master');

      Doing that on 300+ documents is a little trickier. You have two options:

      https://kasyan.ho.com.ua/batch_process_scripts/batch_process_scripts.html
      https://www.kahrel.plus.com/indesign/batch_convert.html

      Peter

    • #99154

      Dear Peter,

      The code you provided is working fine at my end and the batch process is amazing too.

      Thanks for your wonderful help to get the work simple for me.

      May I know how to learn the simple script for indesign (using javascript). Could you please guide me on this. So that I will create the code and request help if needed.

      Thanks,
      Murali S

    • #99155
      Peter Kahrel
      Participant

      This is a good starting point:

      https://www.safaribooksonline.com/library/view/scripting-indesign-cs34/9780596803599/

      It has CS3/4 in its title, but scripting has hardly changed in recent since then.

      Peter

    • #99166

      Dear Peter,

      Its a good one for learning script to the beginner.

      Am exists now on to this.

      Thanks,
      Murali S

Viewing 6 reply threads
  • You must be logged in to reply to this topic.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo