Not that I know of.
textStyleRange is the best you've got.
I thought so.
Shame, I wanted to keep that part as a script.
I wonder if I can connect my C++ with the scripting lines array. So I could have some thing like this.
var waxArray = lines[n].getwaxarray ( );
That is beyond my ken.
I do not agree. Ok, you can say: TextStyleRange is the *next best thing* you can get, but I think:
TextStyleRange cannot be trusted, if it comes to nested styles and GREP Styles.
I have gone through the nested, nested GREP style loop and have some thing working, but, I do know what you mean.... It does not tell where the run has been modified by an external source. From the SDK, Waxruns seem to offer this, including all of the nested and GREP runs.
A new plugin is being born.
I wonder if I can connect my C++ with the scripting lines array.
implemented by a DLL in Windows, a bundle or framework in Mac OS, or a SharedObject in UNIX.
Thank you for taking the time to think about it.
I was hoping to keep this part of the application as a script, but it does look like we will have to talk to the plugin.
We already have the C++ plugin doing some work, so it will not be too much effort to get this bit working. The plugin will probably be faster at iterating over the style runs anyway.
that external library mechanism allows to write plugins to the ExtendScript engine rather than to InDesign, e.g. if you have some standalone code library and want to use it in PhotoShop, InDesign and Illustrator across all versions. The disadvantage of that approach is that you don't have access to the application internals - and Pickory is probably talking about that kind of plugin.
Understood. I have this feeling indeed It might not be able to access internals but as I couldn't test it on my own I thought that It was maybe worth the quote.
Indeed, we do need to access the internals, so we are going to use a C++ InDesign plugin. That said, we have got a prototype doing most of what we want through script. The main problem we can not solve with a script is when the line is broken in the middle by an item intersecting it.
Thanks for all the input on this.
Then you should be more interested in parcels and tiles than in wax ...
Dirk, thank you for the pointer.
I haven't started coding this yet.
We are getting some very nice results from our script, so, not really sure if it is worth the investment in the plugin.