Hello @J5FC1,
Give this script a try, just change "Test" to the name of your Object Style...
function main() {
doc = app.documents[0];
for(var i=0;i<doc.pages.length;i++){
var myPageItems = doc.pageItems.everyItem().getElements();
for(var i=0;i<myPageItems.length;i++){
if (myPageItems[i] instanceof TextFrame){
myPageItems[i].applyObjectStyle(doc.objectStyles.itemByName("Test"));
}
}
}
}
app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'Do Script');
You can also try this free script "Apply Object Style to All Text Containers in a Story"
https://www.id-extras.com/apply-object-style-to-all-text-containers-in-a-story-free-script/
Regards,
Mike