Rename button (script?)

Not very familiar with button and scripts, so some basic help would be appreciated. Under the "Rename" button I created a "preset" that changes a group of jpeg file names to their created date and time. Works fine, but I am trying to assign that preset function to an independent new button, and have not been successful. Appreciate any general help (so I can learn) and specific solution.


Oh! I figured it out. In the custom script I just needed to sect as and "argument" the preset I created! cool!