// export_StyleExportTagMap_simple.jsx var doc = app.activeDocument, ps = doc.allParagraphStyles, ps_n = '', i = 0, n = 0, f = null, g = null, type = false, // Typ exportieren arr = []; for (i = 0; i < ps.length; i++) { g = ps[i]; ps_n = ps[i].name; while (g.parent.constructor == ParagraphStyleGroup) { g = g.parent; ps_n = g.name + ':' + ps_n; } for (n = 0; n < ps[i].styleExportTagMaps.length; n++) { if (type) arr.push(ps_n + '\t' + ps[i].styleExportTagMaps[n].exportTag + '\t' + ps[i].styleExportTagMaps[n].exportType); // Tags + Typ else arr.push(ps_n + '\t' + ps[i].styleExportTagMaps[n].exportTag); // nur Tags } } f = new File( '~/Desktop/StyleExportTagMap_' + doc.name.replace(/\.indd/gi,'') + '.txt' ); f.encoding = 'UTF-8'; f.open('w'); f.write(arr.join('\n')); f.close(); f.execute();
| 27.09.2023