photoshop cs2 script duplicate layer

looking for a small script/example of using JAVA Script inside of PhotoShop CS2

I need to duplicate a layer 100 times by 5 pixles to the left.

obviously, this would take some (for/loop/if) statement.

Any suggestions for Java script for CS2 would be perfect.

Thank you!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Javascript and other scripting doesn't work in Adobe products like CS2.  They are windows applications and javascript can only be applied to the pages you produce, not in the design interface of CS2.
cntmediaAuthor Commented:
Have you ever scripted anything using the script extend in photoshop?

Because the whole scripting language is based off of JavaScript.

I am looking for someone who has made a photoshop script.

This is a workflow issue and looking for pro help.

Not a reply to a forum or a tutorial.

You can change brushes, colors, delete and duplicate things.
The script features are very powerful.

I know someone out there does this kinda stuff on  lunch breaks ;)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.