Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I want to copy the names of 114 files in a specific folder, and rename other 114 files in another folder with the copied names?

Hi,


I have 114 in a specific folder, and I would like to copy the names of these files, then paste in with the same names to other 114 files in another folder.

I think it can be done with the Automator, but I don't know how?

Anyone can help?


Regards,

Karim

MacBook Air, OS X Mountain Lion

Posted on Aug 15, 2012 7:33 AM

Reply
24 replies

Aug 15, 2012 4:07 PM in response to KEyada

First, make a plain-text listing of the files in folder 1. Open the folder in list view. Cmd-A to select all. Cmd-C to copy.


Open TextEdit. Format > Make Plain Text. Paste in the listing with Cmd-V. Save the file.


Download Rename Files 1.3.3. Here's one source: http://mac.softpedia.com/get/Utilities/Rename-Files.shtml. Rename Files is an AppleScript that applies a file listing (the list you make from folder 1, in your case) to files in a target folder (folder 2). Read the instructions and use the script.


A word of caution. Work on a duplicate of folder 2, just in case something goes awry.

Aug 16, 2012 4:54 AM in response to KEyada

Ah, yes, Mountain Lion. (Still with Snow Leopard myself.) Rename Files is a script that was wrapped as an application back in the PowerPC days. It would require Rosetta to run on an Intel machine--so it's not going to run on ML, because Apple stopped supporting Rosetta with SL.


But the script itself looks fairly straightforward. Launch AppleScript Editor, then open Rename Files 1.3.3 inside the editor, and then click the ASE "Run" button. Might work. If not, you'll need more AppleScript help than I can offer to sort it out.

Aug 16, 2012 5:15 AM in response to KEyada

Hi,



You can use this AppleScript :

---------------------------------

set folder1 to choose folder with prompt "Select specific folder to get names of files"

set folder2 to choose folder with prompt "Select folder wich contains files to rename"

tellapplication "Finder"

settNamestonameoffilesoffolder1

set tc to count tNames

settFilestofilesoffolder2

repeatwithifrom 1 totc

try

set name of (item i of tFiles) to item i of tNames

end try

endrepeat

endtell

I want to copy the names of 114 files in a specific folder, and rename other 114 files in another folder with the copied names?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.