Have you look at the InDesign Scripting Guide or the SDK scripts, both provide sample code.
Thanks for replying. but i cant find any sample anywhere. i need it specifically for afterupdate event.
Events are explained starting page 138 of the InDesign Scripting Guide that you can download here :
Once that done, working with afterupdate isn't much but doing minor changes in the sample.
i have this scripting guide already but i want afterupdate only. if i am following the similar syntax for this event then it is throwing exception. can u please give me any small sample in any language or script?
Why don't you post your code instead so we can see what's wrong ?
Actually i dont have any code. i m still learning how to get into this but i m unable to get through.
i can show u a vb.net statement and its error.
and that is:
Dim evt As InDesign.EventListener = idapp.AddEventListener(DocumentEvents.idafterUpdate, "\AddEventListener.vbs")
this idafterUpdate is not showing in the intellisense. it says it does nt belong to documentevents.