Can I override a master page item on a page by using a reference name?
Currently I have an item on my page that comes from a master page. It needs to be that way so it is duplicated when placed text creates a text flow which creates new pages.
After this I want to colorFill the master page item. I currently achieve that by doing the following:
(1) Get the list of masterPageItems on the page: app.activeDocument.pages[x].masterPageItems
(2) I then loop through the list of masterPageItems and check each item to see if it matches the name I am looking for.
(3) Once found I override the master page item I found and then color fill it.
I am wondering if there is an easier way to achieve this? Is there a way to find a masterPageItem on a page using the itemByName("myItem") method? Each page might have a different color so I cannot change the item in the masterSpread.
masterPageItems seems to return an array of pageitems as opposed to the object pageItems that can use the itemByName method.
Thank you in advance for any help provided.
