As it was mentioned on numerous ocasions in this forum, the nextItem() and previousItem() are painfully slow. Found this out for myself this days, when running a script i'we made for side headers in a 900 page long story. Six hours and change to make about 11000 anchored text frames.
So, i'm on the hunt for an alternative for the said methods. Especialy for paragraphs - for a selected paragraph, how can i get a reference to the next paragraph in the story? Would be nice if it is something more generic, to work for characters, for example might be nice, but i'll take any help i can!
Thanks all