This is the scripting help section and I can't help you with scripting if you don't show what you tried. Your latest version of the topic is "do this for me" which belongs in the "Suggestions/Requests" section.
If you had provided the code that you tried in your original request, I wouldn't have to go through all of this with you.
If you stop posting "do this for me" threads in the "Scripting Help" section, I'll be a lot less likely to post in your thread.