Skip to main content
Participant
September 16, 2009
Question

Can I automatically assign a master page type to blank pages?

  • September 16, 2009
  • 1 reply
  • 705 views

I have InDesign set up to automatically add a blank page if necessary to make each chapter of my book have even pages. I want to have the "blank page" say NOTES at the top. I am using Conditional Text, so depending on the scenario, pages may be added or deleted using the Smart Text Reflow. I'm guessing that I could create a script that looks for any blank pages and assigns the NOTES master to it. In a different conditional text scenario, that page may not be necessary and could get deleted.

I have tried to read the instructions on writing scripts, but I'm very confused. Is there already a tool in place for something like this or could someone help me figure out a script?

This topic has been closed for replies.

1 reply

Harbs.
Legend
September 16, 2009

Take a look at this blog post:

In the script change:

        if(changeMaster){pages.appliedMaster=null;}

to:

        if(changeMaster){pages.appliedMaster=app.documents[0].masterSpreads.item("NOTES");}

Harbs

AheickAuthor
Participant
September 17, 2009

Thanks for the help, but I couldn't get that script to work. It doesn't understand the line you gave me and I don't understand scripting enough to debug it.