Ditto command help

Discussion in 'Mac Programming' started by flashuni, Jun 7, 2008.

  1. flashuni macrumors newbie

    Joined:
    Jun 7, 2008
    #1
    I am trying to use ditto to create zip archives of every folder inside of the main folder.

    Here is what I am using right now:

    ditto -c -k -X --rsrc Zip Zip.zip

    I need to be able to zip multiple folders,but not in one archive in separate zip archives.

    It is also important that I use ditto because it is the only way to preserve resource files (mac font files). Please HELP!

    Thanks, Flashuni:)
     
  2. kpua macrumors 6502

    Joined:
    Jul 25, 2006
    #2
    Not exactly sure what you need, but have you tried something like:

    ls main_directory/ | xargs ditto ...

    ?
     
  3. flashuni thread starter macrumors newbie

    Joined:
    Jun 7, 2008
    #3
    Ok their is a main directory that says fonts. I want ditto to zip up all of the folders inside of the fonts directory into individual zip files. I have done this using the regular zip command, but I have to use ditto to preserve the resource fork in the font files so that the are not reduced to 0k when zipped. Ditto does this, but I can figure out how to make it individually zip one folder inside of the fonts directory at a time. If I try to select all of the folders that I want it to zip (In automator) it zips it into one big archive which I don't want.

    If you can give me another way than with ditto that preserves the resource forks and is .zip PLEASE POST!
     
  4. flashuni thread starter macrumors newbie

    Joined:
    Jun 7, 2008
    #4

Share This Page