We work with a ton of GREP's. To make our life easier and for the fun of it, i'm trying to make a script to record all the find/changes we use in a document, save them inside a document label. For now it works like this: make a change using indesign's find/change, push the record button in the script's interface, and the findGrepPreferences, changeGrepPreferences etc are saved. I would like to automate it a bit further, so i only have to press the record button once, and then it will record all the find/change i perform.
is there a "after replace text" event (i know there isn't, but is there a way to fake it?)
maby attach a event listener to the edit/undo menu?