Unlock Master page items
Hello,
This script unlocks all the master page items from documents pages. You dont have to Ctrl_Shift+ Click on each page to unlock master page items.
Issue with the script is that it works only if the document does not have facing pages. What modifications would be requried here to enable for both facing pages and non facing pages document?
Here is the script:
//DESCRIPTION:Overrides a selected item of the master page in the entire document.
#target InDesign
if(! (app.selection.length == 1) ){
alert("Error\rSelect exactly one item on a master page and try again.");
exit();
}
var sel = app.selection[0];
var masterSpread = sel.parentPage.parent;
if(! (masterSpread.constructor.name == "MasterSpread") ){
alert("Error\rThe selected item is not on a master page. Select an item on a master page and try again.");
exit();
}
var doc = app.activeDocument;
var side = sel.parentPage.side;
for(var i = 0; i < doc.pages.length; i++){
var page = doc.pages[i];
if(page.side == side && page.appliedMaster == masterSpread){
sel.override(page);
}
}
Thanks
