That can certainly be scripted, but it's not the kind of script one can just bang out here. For one thing, you've not mentioned which version of InDesign you're using, and which scripting language you wish to use.
If you're looking to employ someone to do this task, you'll need to provide sample documents and be prepared to spend some time discussing the details of your workflow.
Hi, thank you for anwering.
Actually, we use ID CS3, but we already bought CS4 and not yet installed.
I work in a Windows environment, therefore, not AppleScript.
We are not a very large structure and do not have the budget to hire people to programm this workflow.
In MS Word we inserted a section break after each book pagenumber and were added by hand in the footer this book pagenumber and behind this number the current page number in the section. Since I am not at the office for now, I can only attach samplefiles on Monday or Tuesday.
As the pagenumbers in each section begins with 1 again, we got almost automatically
(manually typed book pagenumber) - (page within section)
102-1, 102-2, 102-3.
Of course there is a lot of manual work, but until nowadays it's the only way to perform the workflow.