Copy link to clipboard
Copied
Hi
I've been looking for this all over, but haven't found anything, so I'm wondering if it's even possible.
I'm doing a book. Each page uses the A-master, except for blank pages and the first page of each chapter, which use B-master.
Is there a way to automate applying A-master or B-master Depending on conditions? For example:
If there is some text with a “Chapter Title” Style, then apply B-Master to that page.
If there’s no text in the textboxes in the page, then apply B-Master to said page?
Thanks.
This would apply the master named "B-Master" to blank pages—change the first line if you want to use a different name:
var mpName = "B-Master"
var pgs = app.documents[0].pages;
for (var i = 0; i < pgs.length; i++){
if (pgs[i].allPageItems.length == 0) {
pgs[i].appliedMaster = app.documents[0].masterSpreads.itemByName(mpName);
}
};
Oh and, Master pages are renamed to be woke politically correct now 😉
Copy link to clipboard
Copied
you may find a script for this or find somebody to wirte it to you..
Copy link to clipboard
Copied
This would apply the master named "B-Master" to blank pages—change the first line if you want to use a different name:
var mpName = "B-Master"
var pgs = app.documents[0].pages;
for (var i = 0; i < pgs.length; i++){
if (pgs[i].allPageItems.length == 0) {
pgs[i].appliedMaster = app.documents[0].masterSpreads.itemByName(mpName);
}
};
Copy link to clipboard
Copied
Take a look at this, not free but reasonable priced:
Copy link to clipboard
Copied
Oh and, Master pages are renamed to be woke politically correct now 😉
Copy link to clipboard
Copied
Frans is right, Master Pages are now called Parent pages but regardless, Mastermatic by ID-Extras will do exactly what you want and is an amazing product!