Note that the Scripting forum is not meant for "requesting scripts" (even though we have been seeing a lot of these, lately).
The Illustrator Scripting Forum makes this abundantly clear, right on the starting page:
Unfortunately, for some reason a similar text does not appear on this forum, which may be the reason this one is flooded with "requests" and the Illustrator Scripting forum is not.
See also
for a very appropriate parable.
Bottom lines:
1. If you want someone to write you a script, hire a freelancer. If you want a free script, hire a freelancer and then don't pay him.
2. If you want to learn how to write scripts, read the documentation, then try for yourself.
See
InDesign developer documentation | Adobe Developer Connection
How do I start learning InDesign Scripting?
3. If you need help finding some object or function in InDesign, look in the online pages I pointed you to. Only if you cannot find it, ask.
4. Do not use titles such as "Why this unfunction", "Plz Correct My Script", "Need a script to [xxx]".