so I have this apple script here that I used to insert the folder name into the front of all the files in the folder. The script is able to run through every single folder and target all the files and proved to be very useful
set the_folder to (choose folder)
tell application "Finder"
set folder_name to name of next_folder & " "
set folder_contents to every item of next_folder
repeat with each_item in folder_contents
if kind of each_item is "folder" then
set name of each_item to folder_name & " " & name of each_item
However, now I have removed a part of the folder names and would like a subtractive effect to be applied to the files, so the script will take the files, look at the parent folder's name, and remove the shared characters.
Unfortunately I know very little about apple scripts so I'm hoping this is an easy adjustment that someone here can make.
Thanks for any help you can give!