1 person found this helpful
just to get you started
var tbl = app.activeDocument.selection.convertToTable(" ","\n"); tbl.appliedTableStyle = app.activeDocument.tableStyles.itemByName("Table SP"); tbl.storyOffset.paragraphs.appliedParagraphStyle = app.activeDocument.paragraphStyles.itemByName("SP");
Didn't check it, and I hope it works
Thanks Steven. With a couple of edits that did the trick. It just needed the "\t" and a "\r" instead of the "\n".
You just saved me some 2500 clicks!
Save those clicks to help the next person in need.
Yes \r is the correct syntax. What I find interesting is that in the OMV it says
Note: Can be defined as any single character, such as a letter, number, or punctuation mark, or by typing a space or tab. Use the actual character rather than its name, such as ',' rather than 'Comma'. Precede double or single quotes or a backslash with an extra backslash as an escape character. For paragraphs, use ^p.
However ^p throws an error, while \r works.