Thanks, I got it to work, with using foraward slashes and an extra step, is there an advantage to your code? Sometimes mine will lock up Frame:
function processDoc (doc) {
//Process the paragraphs and tables in the main document flow
var textList, count = 0, i = 0, tbl = 0, pgf = 0;
var tagsFile = new File ("/<path>/For_Keith/tag_list.txt")
alert (tagsFile);
// Turn off the document display to speed the script and
// prevent screen flicker.
if (app.Displaying == 1) {
app.Displaying = 0;
}
//Process each top-level paragraph in document
tagsFile.open("w");
pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
while (pgf.ObjectValid()) {
//!! applyNewPgfFmt(pgf,doc);
tagsFile.writeln (pgf.Name);
pgf = pgf.NextPgfInFlow;
}
tagsFile.close();
}