Is there a way to automate parent pages?

New Here ,
Dec 09, 2021 Dec 09, 2021

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.

TOPICS
How to

Views

130

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Community Professional , Dec 09, 2021 Dec 09, 2021
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); } };

Likes

Translate

Translate
Adobe Community Professional , Dec 09, 2021 Dec 09, 2021
Oh and, Master pages are renamed to be woke politically correct now 

Likes

Translate

Translate
Adobe Community Professional ,
Dec 09, 2021 Dec 09, 2021

Copy link to clipboard

Copied

you may find a script for this or find somebody to wirte it to you..

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 09, 2021 Dec 09, 2021

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);
    } 
};   

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 09, 2021 Dec 09, 2021

Copy link to clipboard

Copied

Take a look at this, not free but reasonable priced:

 

https://www.id-extras.com/products/mastermatic/

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 09, 2021 Dec 09, 2021

Copy link to clipboard

Copied

Oh and, Master pages are renamed to be woke politically correct now 😉

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 09, 2021 Dec 09, 2021

Copy link to clipboard

Copied

LATEST

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!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines