I haven’t installed CC2017 on my machine, but Daves script isn’t running in CC2015 too. The reason is this part that starts at line 17:
switch (Number(String(app.version).split(".")[0])) {
case 3 :
case 4 :
processStylesPreCS3(range, myStyles, aDoc);
processPosnsPreCS3(range, myPosns, aDoc);
break;
case 5 :
processStylesCS3(range, myStyles, aDoc);
processPosnsCS3(range, myPosns, aDoc);
}
Change it to (remove everything except):
processStylesCS3(range, myStyles, aDoc);
processPosnsCS3(range, myPosns, aDoc);
Nevertheless Preptext and Perfect Preptext seems to be the better solution, cause this will not apply e.g. bold to a headline, when the complete para is bold.
> And…what happened to the buttons at the bottom of the Scripts panel to run? You have to click at the top and then click on Run.
I did not understand, what you mean here.