This script it is quite custom to the way that I've organized my project folder and includes a part to do with renaming the sub-ae file. If you want to remove this, or have any trouble, drop it into a language model and ask it to help you.
This AppleScript copies a folder from a specified source path into the currently open Finder window’s folder, prompts the user for a new project name, renames the copied folder accordingly, and then renames an After Effects project file inside a specific subfolder (3. Project files) to match the new name. Error handling is included at each step.
- Define source folder: Sets a source folder path manually in the script.
- Validate source: Checks if the source folder exists; shows an error if not.
- Get destination: Takes the target folder from the frontmost Finder window.
- Copy folder: Duplicates the source folder into the destination.
- Rename folder: Prompts the user for a new name and renames the copied folder.
- Rename project file: Locates "New Project.aep" inside 3. Project files and renames it to match the new folder name.