Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Is there any type of "Command Modifier" that will allow folder 'merging' on copy?

Is there any type of "Command Modifier" that will allow folder 'merging' on copy?
Thread Tools
Forum Regular
Join Date: Jun 2007
Status: Offline
Reply With Quote
Sep 10, 2007, 09:06 AM
 
Hi All,

I'm looking for a way to place items in their respective folders even though similar folders exist. Basically a merge. Is there any way to do this?

For instance, say I have the following:

Desktop/Folder1/item1
Desktop/Folder1/item2
Desktop/Folder1/item3
Desktop/Folder2/item1
Desktop/Folder2/item2


. . .and I want to copy a folder with this structure:

Desktop/Folder1/item4
Desktop/Folder1/item5
Desktop/Folder1/item6
Desktop/Folder1/item7
Desktop/Folder2/item3
Desktop/Folder2/item4
Desktop/Folder2/item5
Desktop/Folder2/item6

I don't want the copy to replace the folders, I want it to know how to add the items recursively down the hierarchy. I'd like to do this on the fly -- no rsyncing or anything like that. I considered creating an intricate AppleScript and placing it as a "Folder Action", but quickly decided against that. Any ideas?

Regards!
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Sep 10, 2007, 10:47 AM
 
The Installer does what you want, and might be AppleScriptable. It overwrites duplicate files, but not folders. That said, I've never tried to use the Installer to do copying - only installing.
     
gberz3  (op)
Forum Regular
Join Date: Jun 2007
Status: Offline
Reply With Quote
Sep 10, 2007, 11:23 AM
 
Yeah, I suppose that would work. Although I could also "tar" it up then untar it to the proper directories. It would be nice if it were just part of the finder. I wonder if something like PathFinder would do the job?
     
Senior User
Join Date: Oct 2004
Location: Vancouver, BC
Status: Offline
Reply With Quote
Sep 12, 2007, 04:38 AM
 
I can't believe there is not a more simplified solution for this.
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Online
Reply With Quote
Sep 12, 2007, 04:52 AM
 
Surely there's some Unix magic that could be applied to this situation, right?

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
gberz3  (op)
Forum Regular
Join Date: Jun 2007
Status: Offline
Reply With Quote
Sep 12, 2007, 04:57 AM
 
Well, if I wanted to do that, I suppose I could just write a script and/or use "rsync". I'm just surprised none of the OS guru's thought that that feature would be a useful requested enough freature to incorporate natively.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Sep 12, 2007, 08:28 AM
 
rsync would definitely do that. I've done stuff like that before using rsync.
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Sep 12, 2007, 10:11 AM
 
With a little work, you could code a Contextual Menu Item to do that. Select 2+ folders, select the Merge CM, further select which folder is to be the final one. Or make the CM a little smarter, so the one you pop the menu up on would be the merge folder. It would use rsync in the background to do the work.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:37 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2