Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 20, 2013, 06:54 AM   #1
maxslomoff
macrumors newbie
 
Join Date: Nov 2012
copy multiple file names > then paste to multiple different files

hello,
i have a two folders each with multiple files and i want to take the file names in folder a and paste them onto the files in folder b.

i have found that in a plain txt doc i can select all the files in folder a, paste it in the doc and i'll get a list of the file names.

i have also used automater before.

but what i can not find out is how to paste a list of names onto multiple files at once...

when organized by "name" the files in both folders will appear in order. but i want the names in each folder to match.

is it possible to take a txt document and apply it to multiple file names?

thanks
max
maxslomoff is offline   0 Reply With Quote
Old Mar 20, 2013, 08:34 AM   #2
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
I'm not sure I understand your question. Can you give an example of your desired input and output?
ArtOfWarfare is offline   0 Reply With Quote
Old Mar 20, 2013, 11:50 AM   #3
maxslomoff
Thread Starter
macrumors newbie
 
Join Date: Nov 2012
In folder a I have 15 files

The first 10 of which are similar to the 10 files in folder b.

I want the first 10 files in folder a to be named the same as the 10 files in folder b.

When I say "first" I am referring to the list of files as its organized by name.

Sometimes folders a and b will have 3 files in common, sometimes 20.

The order of operations would be:
Organize folder a by name
Copy all file names
Organize folder b by name
Paste all file names (and any extra file names would be ignored)

Result : folder a and b have common file names and the matching files are the pairs of similar files, which can be found by organizing each folder by name and descending down the list one at a time.
maxslomoff is offline   0 Reply With Quote
Old Mar 20, 2013, 03:58 PM   #4
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Suppose you have folders A (with the names of its files on the left) and B (with the names of its files on the right):

Folder A Folder B
File ABC File DEF
File DEF File GHI
File JKL File JKL
--------- File MNO

Based on your description, your resulting Folder B should contain:
File ABC (containing what B/DEF contained originally)
File DEF (containing what B/GHI contained originally)
File JKL (containing what B/JKL contained originally)
File MNO (containing what B/MNO contained originally)

Is this correct or am I missing something?
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
ArtOfWarfare is offline   0 Reply With Quote
Old Mar 21, 2013, 08:13 AM   #5
maxslomoff
Thread Starter
macrumors newbie
 
Join Date: Nov 2012
No.

It's sorta like this:

Folder a:
Aoo1oo1blabla
Aoo1oo2blabla
Aoo1oo3blabla
Randomfile.xml
Randomfile.html
Randomfile.wtf

Folder b:
A-1_1
A-1_2
A-1_3


And I want an automatic way to take the names of the first 3 files in folder a and replace the names in folder b with them, in that same order WITHOUT changing the files themselves or the .extension

Make more sense?

----------

The result would be:

Folder a:
Aoo1oo1blabla
Aoo1oo2blabla
Aoo1oo3blabla
Randomfile.xml
Randomfile.html
Randomfile.wtf

Folder b: (same original files as folder b, but new names matching folder a)
Aoo1oo1blabla
Aoo1oo2blabla
Aoo1oo3blabla
maxslomoff is offline   0 Reply With Quote
Old Jul 27, 2014, 10:52 AM   #6
sonicartist
macrumors newbie
 
Join Date: Jul 2014
This is exactly what I have been looking for

I'm assuming you didn't get an answer to this. So sad because this would be ideal for replacing music in a music library with upgraded or fixed versions. Currently, I do this by hand and iTunes retains all the metadata.

Quote:
Originally Posted by maxslomoff View Post
No.

It's sorta like this:

Folder a:
Aoo1oo1blabla
Aoo1oo2blabla
Aoo1oo3blabla
Randomfile.xml
Randomfile.html
Randomfile.wtf

Folder b:
A-1_1
A-1_2
A-1_3


And I want an automatic way to take the names of the first 3 files in folder a and replace the names in folder b with them, in that same order WITHOUT changing the files themselves or the .extension

Make more sense?

----------

The result would be:

Folder a:
Aoo1oo1blabla
Aoo1oo2blabla
Aoo1oo3blabla
Randomfile.xml
Randomfile.html
Randomfile.wtf

Folder b: (same original files as folder b, but new names matching folder a)
Aoo1oo1blabla
Aoo1oo2blabla
Aoo1oo3blabla
sonicartist is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How can I open multiple files within multiple folders in an app at once? EyeAmLuv OS X Mavericks (10.9) 6 Apr 4, 2014 10:35 PM
Finder Move/Copy/Paste Multiple Items Status Combined or Individual rick3000 OS X 1 Jul 17, 2013 03:41 AM
Multiple Names for a single iPhone contact? razzydazzle99 iPhone 6 Feb 11, 2013 08:48 AM
Automator : Read multiple file names Tech198 OS X 10.8 Mountain Lion 4 Jan 29, 2013 01:31 PM
Another multiple ID, multiple device, multiple phone number iMessage question mrcalabash iOS 6 3 Jan 12, 2013 08:45 PM

Forum Jump

All times are GMT -5. The time now is 10:51 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC