I had a catalog layout with 200 captions. They all have the same distinctive character style. I am searching for a solution to export only these caption texts with the distinct character style out of InDesign in a new document as for example, an RTF text. The format doesn't matter. It's more important to have only the captions out of the whole catalog.
Here's a method that works and doesn't require anything other than basic InDesign features.
It's pretty easy, but has a few steps, so, if you need to do this often, it might be worth looking into using scripts instead (see comments below) so you can do all of this with one click, not many.
1: In a copy of the file, remove all text that doesn't have this character style
2: Copy all the remaining text from this indesign file
Export as HTML and copy from there.
Edit: Even though you seem to mention it multiple times, it just dawned on me that you were talking about character styles and not paragraph styles... :(
I'm just going to leave this here anyways.
You could do this with table of contents.
You can make table contents by using paragraph styles as the "hook".
Layout > Table of contents...
Here I pretty much touched only those options that I've explained in the image.
...and when you click OK, it will create me a nice list of all the text with the specified "yay" paragraph style in it:
The rest should be simple.
If you make text changes to your document, you can update the