The second script is probably more efficient. I've spent time working on my own script (while you were writing yours), and have to stick with that because it's got more "features" that I need. I made it go much faster. Instead of beginning with the user placing the cursor in the text (like your script presumes), it requires the user to manually select all the necessary paragraphs. Then it works with the selection. For some reason this is much faster. It also takes care of the necessary specific styles I need. Plus, one thing which is a real pain, is footnotes. What happens if you script a "convert text to table"? In UI, you get a dialog warning that you'll lose the footnotes. I haven't tried it in a script. Maybe it's worth experimenting later. Anyway, my script makes an effort to add "fake" footnote indicators inside the table. I would post it, but I don't know how to get that mono-width text frame thing that you post your scripts in. 😞 By the way, I wrote a script that converts ALL character overrides in a document to character styles (any combination of fonts, fonts weights, point size, language, etc. etc.) I can send it to you if you're interested. It's fairly quick. Ariel PS (I hate this forum interface. It's almost as slow as my script.)
... View more