Hello All, I have document that has 10 text boxes and each box starts with parastyle H1.
hello all, have document has 10 text boxes (each on different page) , each box starts parastyle h1 , text , headings. text boxes independent.
i want export text rtf textboxes text starts h1 parastyle separate files.
macos 10.8, cs6, extend script
regards
virender
ps: there other pages having tables, figure dont have text boxes.
dear all, able wrote script showed error @ 5th line due yet unknown reason. there exception handling process in extend script?
var mydoc = app.activedocument;
var myfolder = "~/desktop/virender_mac_l/apple_script/testing";
for (var s=0; s< mydoc.stories.length; s++)
{
var st = mydoc.stories[s]; // var st = mydoc.stories[s].paragraphs[0];
if (st.paragraphs[0].appliedparagraphstyle.name == "h1") // here use error once few stories exported when clicked on run (two or 3 times) remaining stories got exported , alert("done") got executed.
{
var filename = s + st.paragraphs[0].contents + ".rtf";
mypath = myfolder + "/" + filename;
myfile = new file (mypath);
st.exportfile(exportformat.rtf, myfile);
}
}
alert("done");
More discussions in InDesign Scripting
adobe
Comments
Post a Comment