I realize this thread is quite old, but this is the top google result for "files to layers." Thats how I got here.

You don't need any scripts if you have bridge cs4 or higher. Shift select your files in bridge, then choose tools>photoshop>Load Files into Photoshop Layers.