How to make a script
Posted: 23 May 2026 15:19
Hello everyone.
I'm wondering if anyone could please help me automate the tasks I'm currently performing manually, as listed below.
I also want that, within a directory with multiple subdirectories, when I select the parent directory and run the script, these tasks will be performed for each subdirectory.
In a subdirectory:
Select all files that do not end with the character “_a” (excluding double quotes).
Copy those files and paste them into the same directory 30 times.
Select all files that end with the character “_a”.
Copy those files and paste them 3 times into the same directory.
Select all files that end with the character “_a - Copy.”.
Change those characters to “ - Copy (5)_a”
Select all files that end with the character “_a - Copy (2)”.
Change those characters to “ - Copy (10)_a”
Select all files with the characters “_a - Copy (3)” at the end.
Change those characters to “ - Copy (20)_a”
Select all files without the characters “ - Copy” at the end.
Change those characters to “ - Copy (1)”.
Select all files with the characters “ - Copy” at the end.
Change those characters to “ - Copy (0)”.
Select all files with the characters “_a - Copy (1)” at the end.
Change those characters to “ - Copy (30)_a”
Find and replace the characters at the end of the file name (0)...(9) with (00)...(09)
Find and replace the characters “Copy ” with “ ” .
I'm wondering if anyone could please help me automate the tasks I'm currently performing manually, as listed below.
I also want that, within a directory with multiple subdirectories, when I select the parent directory and run the script, these tasks will be performed for each subdirectory.
In a subdirectory:
Select all files that do not end with the character “_a” (excluding double quotes).
Copy those files and paste them into the same directory 30 times.
Select all files that end with the character “_a”.
Copy those files and paste them 3 times into the same directory.
Select all files that end with the character “_a - Copy.”.
Change those characters to “ - Copy (5)_a”
Select all files that end with the character “_a - Copy (2)”.
Change those characters to “ - Copy (10)_a”
Select all files with the characters “_a - Copy (3)” at the end.
Change those characters to “ - Copy (20)_a”
Select all files without the characters “ - Copy” at the end.
Change those characters to “ - Copy (1)”.
Select all files with the characters “ - Copy” at the end.
Change those characters to “ - Copy (0)”.
Select all files with the characters “_a - Copy (1)” at the end.
Change those characters to “ - Copy (30)_a”
Find and replace the characters at the end of the file name (0)...(9) with (00)...(09)
Find and replace the characters “Copy ” with “ ” .