Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Getting ParagraphStyles in a text file

$
0
0

Hi Learner,

 

Please use the below JS code, its getting the paragraph styles only. If you need character styles also you can edit simply.

 

 

var Report = new File("~/Desktop/Styles_Report.txt" );
Report.open("w");
var Styles = (app.activeDocument.allParagraphStyles);
var i = Styles.length;while (i--){    Report.writeln(Styles[i].name+"\n")    }
Report.close();

 

thx,

csm_phil


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>