Skip to content

Carlo Beccarini

My feedback

1 result found

  1. 128 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Need More Info  ·  Anonymous responded

    Hi All, thanks for this feature suggestion.

    If I understand this correctly the idea here is that you need a faster way to be able to apply Master Pages to the various pages in the document. One use case is that you want to apply a particular master page to Even and Odd pages.

    Are there other such scenarios too, where you need more support. It would be helpful if you can mention other such scenarios.

    Thanks

    An error occurred while saving the comment
    Carlo Beccarini commented  · 

    Not sure wether it works or not since i don't use InDesign, i'm just a developer. Btw you can use this script to apply a master page on all even pages:

    var document = app.documents[0];
    var masterSpreads = document.masterSpreads;
    var pages = document.pages;
    var masterName = "A-Master";

    for (var n = 0; n < pages.length; n++) {
    if (n % 2 === 0) {
    pages[n].appliedMaster = masterSpreads.itemByName(masterName);
    }
    };

    If you need to apply the master on odd pages, you can use this one:

    var document = app.documents[0];
    var masterSpreads = document.masterSpreads;
    var pages = document.pages;
    var masterName = "A-Master";

    for (var n = 0; n < pages.length; n++) {
    if (n % 2 != 0) {
    pages[n].appliedMaster = masterSpreads.itemByName(masterName);
    }
    };

    Of course you need to change masterName variable to match the one you're using.

Feedback and Knowledge Base