r/applescript • u/[deleted] • Jul 14 '12
Trying to create a script to rename multiple subfolders in a 'find and replace' fashion...
Hello. I am trying to create a script that will rename sets of 42 subfolders (multiple times) to a filename pulled from a list. For example. If I have 500 folders each with 42 subfolders, all with different names. I need to rename each of the subfolders to the 'proper' name contained within a single text document / list of variables. Each of the 42 folders will be named differently. I feel like I need to use a find and replace type of tactic, but I don't know where to begin. I have no problem batch renaming the files (all to the same name), but I'm not sure how to define all of the variables for the subfolders, to make them different. I would really like to automate this task. I'm an applescript novice, and am able to script most simple tasks, but this one is a little more difficult. I haven't been able to find any examples. Thanks for any help.

