Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 20, 2013, 05: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, 07:34 AM   #2
ArtOfWarfare
macrumors 601
 
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, 10: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, 02:58 PM   #4
ArtOfWarfare
macrumors 601
 
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?
__________________
Battery Status - On the Mac App Store
The only app that'll estimate when your wireless devices will need their batteries changed.
Including the ones paired with other Macs on your network.
ArtOfWarfare is offline   0 Reply With Quote
Old Mar 21, 2013, 07: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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:55 AM.

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

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