Copy link to clipboard
Copied
Is there a way to apply the master page A-Project to 1-Project, 2-Project, 3-Project...etc all at once? I searched everywhere but couldn't find a solution.
Hi @Rachel28371239g14w, here's a quick little script:
/*
* Apply Master to Project Masters
* @discussion https://community.adobe.com/t5/indesign-discussions/apply-master-to-other-masters/m-p/13573264
*/
function main() {
var doc = app.activeDocument,
matchProjectPageNames = /^\d+-Project$/,
masterPage = doc.masterSpreads.itemByName('A-Project');
if (!masterPage.isValid) {
alert('Master page is not valid.');
return;
}
for (var i = 0; i < doc.m
...
Copy link to clipboard
Copied
Hi @Rachel28371239g14w, here's a quick little script:
/*
* Apply Master to Project Masters
* @discussion https://community.adobe.com/t5/indesign-discussions/apply-master-to-other-masters/m-p/13573264
*/
function main() {
var doc = app.activeDocument,
matchProjectPageNames = /^\d+-Project$/,
masterPage = doc.masterSpreads.itemByName('A-Project');
if (!masterPage.isValid) {
alert('Master page is not valid.');
return;
}
for (var i = 0; i < doc.masterSpreads.length; i++)
if (matchProjectPageNames.test(doc.masterSpreads[i].name))
doc.masterSpreads[i].appliedMaster = masterPage;
} // end main
app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'Apply Master to Project Masters');
- Mark
Copy link to clipboard
Copied
Amazing. Thank you loads!
Copy link to clipboard
Copied
You're welcome!