Hi All,
I’m trying to figure out a way to rename a folder using part of the parent folder that is two levels up. I’ll be more specific. I’m a photographer and use an application called Capture One Pro to process our Raw files to TIFF and JPEG. When we start a new job in C1Pro we always name the job a specific way which is a Job Number and Client Name pair (i.e. 0000-00 ClientName) so C1Pro creates a folder by that name in our Work In Progress folder. Inside the folder “0000-00 ClientName” it creates three folders (Captures, Processed and Trash) The Automator action that I’m wanting to include this script in is designed to push low res files and thumbnails to our website for the client to view. When C1Pro processes the low res files and thumbnails it places them in Processed in a new folder called Web_Proofs. What I would like the script to do is prompt the user to select the job folder they want to send to the web (i.e. 0000-00 ClientName) then the script would need to copy the first 7 characters of the folder (i.e. 0000-00) the rename Web_Proofs to 0000-00 and then add Job_ to the begining the folder so Web_Proofs would be renamed Job_0000-00. Then at the end of the script pass that folder to the next Automator action. I had tried to use the script “Replace Text In Item Names” that is in the Applescript Examples folder but it required to many prompts to the user and I would like it to be more automated with the user only having to select the job folder. I have the uploading of the folder working fine so I just need to solve the renaming problem.
Thanks in advance,
Mark