Created
March 3, 2009 16:33
-
-
Save josephholsten/73388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set source_folders to the selection of application "Finder" | |
set destination_folder to choose folder with prompt "Select folder to merge into:" | |
CopyAndMergeFolders from source_folders into destination_folder | |
to CopyAndMergeFolders from sourceFolders into destinationFolder | |
if (count sourceFolders) is equal to 0 then error "No source files selected" | |
set dest_path to quoted form of POSIX path of (destinationFolder as alias) | |
set src_paths to "" | |
repeat with n in sourceFolders | |
set src_paths to src_paths & (quoted form of POSIX path of (n as alias)) & space | |
end repeat | |
do shell script "ditto " & sources & space & destination_folder | |
end CopyAndMergeFolders |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment