You don't even need a script. Just duplicate the layer you want the position from (CTRL-D). Then ALT-Drag the layer from the Project Bin and drop it on the layer you just duplicated in the comp. Done.
Joe Bourke
Owner/Creative Director
Bourke Media
http://www.bourkemedia.com