Indesign Script for footnotes losing text styles
问题 I'm working with footnotes in InDesign 5 . I managed to convert my text to footnotes, but my problem is that they lose the style in the process. This is the script I'm using : Application.prototype.main = function(){ if ( this.documents.length <= 0 ) return; var tg = this.selection[0] || this.activeDocument; if( 'appliedFont' in tg ) tg = tg.parent; if( tg.constructor == TextFrame ){ tg = tg.parentStory ; } if(! ('findGrep' in tg) ) return; var fnPatterns = ["@FOOTNOTES_BEGIN@([\\s\\S]*?)