In this article, we will present an improved version of the commonly shared script for renaming layers in Adobe Photoshop. The original script may have been too aggressive in renaming all layers, regardless of their nesting level. Our version will allow you to select the desired layers, including those nested within groups, and rename them in a more refined manner. We will also include the option to add a numbering suffix to the new layer names. Additionally, we will provide a more user-friendly interface by prompting the user to input the base layer name, start number, and numbering format. The script will then automatically apply these settings to the selected layers, ensuring a consistent and efficient renaming process.