Find part of the folder name and convert it to a smart object

Thanks for the help.

Thanks for the help.
Find this line in the code:
if (/^[ASN][:.]/i.test(layer.name)) {
The [ASN] bit controls the first letter (case insensitive), so add/remove as needed inside the square brackets.
The [:.] bit controls the characters after the letter, so add/remove as needed inside the square brackets.
When I have time, I'll try to make the script more user-friendly by adding a user interface prompt to enter characters, rather than you having to change the code.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.